24 HOUR TO 12 HOUR CONVERSION

Completed Posted Sep 20, 2014 Paid on delivery
Completed 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.

C++ Programming

Project ID: #6483909

About the project

4 proposals Remote project Active Sep 20, 2014

Awarded to:

vietcompro

Hi there, I can do this one for you. Really hope to have chance to work with you again, thanks for your consideration! Regards.

$15 USD in 0 days
(61 Reviews)
5.1

4 freelancers are bidding on average $15 for this job

it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C++ and algorithm skills. I am focused mostly on doing computer science work here in freelancer.com and I w More

$15 USD in 0 days
(563 Reviews)
7.0
usmanahmad958

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

$15 USD in 1 day
(2 Reviews)
1.2