If the user enters one of the choices 1, 2, 3, or 4, the program displays
an appropriate prompt. For example, if the user enters menu choice 4 then
a prompt is displayed: Input year of birth >
and the data entered is accepted. If the user enters something other
than one of the choices 1...4, the program displays an error message
Incorrect menu choice...Enter
one of 1, 2, 3, or 4.
Press <Enter>
to return to the menu >
, waits until the user presses the <Enter> key, and then redisplays
the menu. The user can enter the data for the 4 choices in any order, The
prompt at the bottom of the menu should change depending on the items previously
selected, so for example, if the user has already entered the data for
menu choices 3, 4, then the prompt at the bottom of the menu would
be
Input one of 1, 2 >
Once the user has chosen each of 1, 2, 3, 4 and has entered the data
requested at the prompts, the program displays the data in the form:
Name:
Jane Doe
Phone: 364-1234
Birth: 1978
File name: Save the program as menu.cpp
File name: Save the program as - NOTE CHANGE!