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
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:
Sleep stats computed.
Hours slept per week:
Hours slept per month:
In a month, you sleep for about 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
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:
Sleep stats computed.
Hours slept per week:
Hours slept per month:
In a month, you sleep for about days.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
