Question: Write a program to accept a weekday and a time (composed of hour and minute) in 24-hour format. The user further inputs a number
Write a program to accept a weekday and a time (composed of hour and minute) in 24-hour format. The user further inputs a number of minutes to be added to (or subtracted from) the time. Then it outputs the resulted day and time in 2-digit 24-hour format. 3rd digit of your student ID Odd Even Number of minutes to be ... Added Subtracted User inputs: 1. day (a string, abbreviation of weekdays: Sun, Mon, Tue, Wed, Thu, Fri, Sat) 2. hour (an integer from 0 to 23, inclusive) 3. minute (an integer from 0 to 59, inclusive) 4. number of minutes (a non-negative integer) Program outputs: 1. day and time in 2-digit 24-hour format Sample display (for odd) Mon 12 34 2468 Wed 05 42 Sample display (for even) Mon 12 34 2468 Sat 19 26 Remark: 2468 minutes = 1 day 17 hours 8 minutes. The number of minutes to add (or subtract) can be any non-negative integer. The result may be many weeks later (or before). The output time is displayed in 2-digit 24-hour format.
Step by Step Solution
3.41 Rating (151 Votes )
There are 3 Steps involved in it
Python def addminutesday hour minute minutestoadd weekdays Sun Mon Tue Wed Thu Fri Sat Convert the i... View full answer
Get step-by-step solutions from verified subject matter experts
