24 HOUR TO 12 HOUR CONVERSION
$10-30 USD
Paid on delivery
Task 1: Convert 24 hour time notation to 12 hour AM/PM notation.
Notes:
a) The convert function has boundary cases that require careful attention.
b) ALL of this commentary and planning should be done PRIOR to beginning to write the
program. Once this is done the program is almost written. The sooner coding begins, the
longer the program will take to do [url removed, login to view] sure to write up a design
c) When testing for equality, as in
if (12 == hours)
put the constant first. The compiler will catch errors such as if (12= hours) which are hard
to see otherwise.
Input: 24 hour time HH:MM
! ! //keep in mind the user will enter the colon, you need
! ! to save the hour and minutes value
Output: corresponding 12 hour time, with AM/PM indication
! ! keep AM/PM information in a char variable
Programs continues to run till the user keeps entering Y or y at
the prompt -“would you like to continue? ”
Sample Run of the program:
Enter 24 hour time in the format HH:MM
0:30
Time in 12 hour format:
12:30 AM
Enter Y or y to continue, anything else quits.
y
Enter 24 hour time in the format HH:MM
2:15
Time in 12 hour format:
2:15 AM
Enter 24 hour time in the format HH:MM
23:59
Time in 12 hour format:
11:59 PM
Enter Y or y to continue, anything else quits.
Project ID: #6483909
About the project
Awarded to:
Hi there, I can do this one for you. Really hope to have chance to work with you again, thanks for your consideration! Regards.
4 freelancers are bidding on average $15 for this job
Seems like school assignment.I have good programming skills especially in C++. And these little school assignments are not a problem for me. I will also help you in understanding codes in case if you are interested. He More