Question: create an application that displays the current time in hours, minutes, and seconds. The display should use a 12-hour clock and indicate whether its AM
create an application that displays the current time in hours, minutes, and seconds. The display should use a 12-hour clock and indicate whether its AM or PM. To convert the computers time from a 24-hour clock to a 12-hour clock, first check to see if the hours value is greater than 12. If so, subtract 12 from the hours value and set the AM/PM value to PM. Also, be aware that the hours value for midnight is 0.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
