C++ project help please

Write a program to convert the time from 24-hour notation and vice versa. Your program must be menu driven, giving the user the choice of converting the time between the two notations. Furthermore your program must contain at least the following function : a function to convert the time from 24-hour notation to 12-h notation, a function to convert the time from 12-hour notation to 24-hour notation, a function to display the choices, function(s) to get the input, and function(s) to display the results. ( For 12-hour time notation, your program must display AM or PM)
What have you written so far?

By the way, it is against the rules to use the word "help" in your topic title.
Im guessing you are going to write this in C++. Here are a few things that you should think about doing while creating this program.

A. Output to screen a menu. for example:
1. Convert to 24-hour notation.
2. Convert to 12-hour notation.

Please enter one of the choices above.

B. Here is a sample of what you should start with.
1
2
3
4
5
6
7
8
9
10
int a; cin >> a; 
if(a==1)
{
  // make the user input 12 hour notation number. 
}

if (a==2)
{
   // make sure input 12 hour notation number 
} 



Topic archived. No new replies allowed.