Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python 3.6 please Write a program which, given a start time and a time to add, calculates the final time (in hours, minutes and

Use python 3.6 pleaseimage text in transcribed

Write a program which, given a start time and a time to add, calculates the final time (in hours, minutes and seconds). Name your program YourUserNameA104.py', e.g. dazh001A104.py. The times in this program use a 24 hour clock, e.g., 18:36:45 is 36 minutes and 45 seconds past 6pm. The first two lines of your program initialise the variables in the following way (you will need to change the values assigned to these variables when testing your program) start time "13:05:25" time to add"01:14:54" The final time should always be a time between 00:00:00 and 23:59:59. The start time, the time to be added and the final time always have the form "hh:mm:ss", i.e. a single digit hour, minute or second has a "O" in front of it. Look at the following example outputs using the completed program (using different variable values). Your program must give the correct output in the same format as the outputs in these examples. The lines of"symbols contain 35 characters Start time: 09:59:12 Seconds to add: 79491 (22:04:51) End time 08:04:03 Start time: 09:59:12 Seconds to add: 18030 (05:00:30) End time: 14 59: 42 Start time 23:32:59 Seconds to add: 1621 (00:27:01) End time: 00:00:00

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions