+ 2

Can anyone help me understand my assignment?

I need to make a program in c++ that takes a start time, then weather it is AM or PM, then asks for the delay hours and then the delay minutes, and then computes it. It has to display output in 12 hour format, and it has to mainly use functions. The main() function should be short.

4th Oct 2017, 3:32 AM
Colton Toney
Colton Toney - avatar
10 Answers
+ 6
For reference, but you need to finish the tutorial, you're basicaly asking for a full program ... you may wanna take a code as is and hand it, but then if you can't explain how it runs ... check the web, stackoverflow++
4th Oct 2017, 4:30 AM
Mason Neville
Mason Neville - avatar
+ 6
You can write a reply in this thread, then click insert = insert code, then search clock, timer etc... you'll find some other codes, other than that your question is to wide, I doubt it will be answered, get down to more specific trouble shooting and repost it, myself I don't know how to code such a program and I'm working on some other stuff. Try to post in a thread where one of the above cited clockmakers is active, good luck !
4th Oct 2017, 4:33 AM
Mason Neville
Mason Neville - avatar
+ 3
which part do u not understand? if u don't understand, u should re-read the problem and ask proper question at which part do u not understand
4th Oct 2017, 4:15 AM
Glenda Emanuella Sutanto
Glenda Emanuella Sutanto - avatar
+ 3
thank you Mason
4th Oct 2017, 4:31 AM
Colton Toney
Colton Toney - avatar
+ 3
too many questions to start with. let's pick one: Pick one function that you think you need, as simple as possible and then see whether you can divide it in two..
5th Oct 2017, 6:25 PM
Bulent Basaran
Bulent Basaran - avatar
+ 3
e.g., ask the user am or pm? Can you write the code to do that?
5th Oct 2017, 6:26 PM
Bulent Basaran
Bulent Basaran - avatar
+ 3
great! Please see the last code I published. meant to help, but maybe a little late ;-)
5th Oct 2017, 6:38 PM
Bulent Basaran
Bulent Basaran - avatar
+ 1
I figured it out, but thank you all for your help. I will post the code I used after my teachers set due date has passed.
5th Oct 2017, 6:28 PM
Colton Toney
Colton Toney - avatar
0
I do not understand what equations I should use in each function as well as I do not understand where to call what from where.
4th Oct 2017, 4:21 AM
Colton Toney
Colton Toney - avatar