Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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