Answered step by step
Verified Expert Solution
Question
1 Approved Answer
INSTRUCTIONS Use c + + visual studios Write a program that asks the user to enter a number of minutes. There are 6 0 minutes
INSTRUCTIONS Use c visual studios
Write a program that asks the user to enter a number of minutes.
There are minutes in one hour. If the number of minutes entered by the user is greater than or equal to the program should display the number of hours and how many minutes it can be broken down into. For example, if the user enters minutes, the output might look like:
The equivalent of minutes is hours and minutes.
There are minutes in one day. If the number of minutes entered by the user is greater than or equal to the program should display the number of days in that many minutes, the number of hours should be less than and the number of minutes should be les than Use the modulus operator along with integer mathematics to make this easier on yourself. As an example, if the user entered minutes, the output might read:
The equivalent of minutes is: day, hour and minutes.
There are minutes in one week. If the number of minutes entered by the user is greater than or equal to the program should display the number of weeks, days, hours and minutes that it can be broken down into. As an example, if the user entered minutes the output from the program might read:
The equivalent of minutes is weeks, days, hours and minutes.
Your program MUST use conditional operators to determine whether the output message NEEDS to include only hours and minutes, days, minute and hours, or weeks, days and hours. This is based entirely on whether or not the users input goes over those "breakpoint" values and
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started