Question: I really need the final two outputs to work please. In this lab we will be coding two blocks of code, both translating time into
I really need the final two outputs to work please.
In this lab we will be coding two blocks of code, both translating time into a 12 hour clock. For our 12 hour clock, 12 o'clock will actually be 0 o'clock. So our hours range from 0 to 11, unlike an actual clock that have hours in the range 1 to 12. 1. This block of code gets a number of minutes from the user and translates that into time on a 12 hours clock. If the user puts 0 minutes into the program the program should output the string "O:0 !". The number before the colon is the number of hours, the number after the colon is the number of minutes. Here are some more examples of input and output: o Input: "60" --> Output: "1:0!" o Input: "121" --> Output: "2:1 !" o Input: "785" --> Output: "1:5!" // Notice the 12 hour clock time adjusts 13 hours to 1 hour. 2. This block of code expands upon the first one. This time we will take the hours minutes and seconds from the user and translate to 12 hour clock time. The input from the user is in the form "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
