Question: 1 9 . 1 LAB: Convert to seconds Write a program that reads in seconds, minutes, and hours as input, and outputs the time in

19.1 LAB: Convert to seconds
Write a program that reads in seconds, minutes, and hours as input, and outputs the time in seconds only.
Ex: If the input is:
40
6
1
where 40 is the number of seconds, 6 is the number of minutes, and 1 is the number of hours, the output is:
4000 seconds
5351122.4021590.03zqy7
LAB
19.1.1: LAB: Convert to seconds
010
main.py
Load default template...
1 number_of_seconds =40
2 number_of_minutes =6
3 number_of_hours =1
4 total_seconds = number_of_seconds + number_of_minutes **60+ number_of_hours **60**60
 19.1 LAB: Convert to seconds Write a program that reads in

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!