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 thisI 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 " ". The output in is the form ":. !". Here are some examples of input and output: o Input: "0 0 0" Output: "0:0.0!" o Input: "60.5 60 60" . --> Output: "1:31.0!" // Notice 60.5 hours, hours can be specified with a decimal point. o Input: "1 121 12" - Output: "3:1.12 !" --> -->

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!