Answered step by step
Verified Expert Solution
Link Copied!

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 60 minutes in one hour. If the number of minutes entered by the user is greater than or equal to 60, the program should display the number of hours and how many minutes it can be broken down into. For example, if the user enters 256 minutes, the output might look like:
The equivalent of 256 minutes is 4 hours and 16 minutes.
There are 1,440 minutes in one day. If the number of minutes entered by the user is greater than or equal to 1,440, the program should display the number of days in that many minutes, the number of hours (should be less than 24) and the number of minutes (should be les than 60). Use the modulus operator along with integer mathematics to make this easier on yourself. As an example, if the user entered 1520 minutes, the output might read:
The equivalent of 1520 minutes is: 1 day, 1 hour and 20 minutes.
There are 10,080 minutes in one week. If the number of minutes entered by the user is greater than or equal to 10,080, 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 26435 minutes the output from the program might read:
The equivalent of 26435 minutes is 2 weeks, 4 days, 8 hours and 35 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 960,1440 and 10080.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions

Question

=+applying to all or most employers and employees?

Answered: 1 week ago

Question

=+associated with political parties and if so, which ones? Are

Answered: 1 week ago