Question: Create a program that asks the user to input their sleep time ( hours - int ) . Using that information, your program should calculate

Create a program that asks the user to input their sleep time (hours - int). Using that
information, your program should calculate and print the following:
(a) how many hours per week the user sleeps
(b) how many hours per month the user sleep (assume that a month has an average of 4.3
weeks)
(c) using the value from (b), calculate how many days per month are spent sleeping.
Please print all values rounded to two decimal places.
Enter number of hours of sleep per night: 8
Sleep stats computed.
Hours slept per week: 56
Hours slept per month: 240.8
In a month, you sleep for about 10.03 days.Create a program that asks the user to input their sleep time (hours - int). Using that
information, your program should calculate and print the following:
(a) how many hours per week the user sleeps
(b) how many hours per month the user sleep (assume that a month has an average of 4.3
weeks)
(c) using the value from (b), calculate how many days per month are spent sleeping.
Please print all values rounded to two decimal places.
Enter number of hours of sleep per night: 8
Sleep stats computed.
Hours slept per week: 56
Hours slept per month: 240.8
In a month, you sleep for about 10.03 days.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!