Question: start by building a program that displays the main menu of our application. The code for this menu will in inside of function main (the

start by building a program that displays the main menu of our application. The code for this menu will in inside of function main (the main function of the program).

Below is a screen shot of what the menu will look like:

 start by building a program that displays the main menu of

Even though we wont have that actual code to do all of the things in the menu, the menu must still be functional. That is to say, if a user enters any of the choices on the menu, they will get an appropriate response.

For example, if the user enters choice 1 they will see a screen like this:

our application. The code for this menu will in inside of function

When the user presses a key, they will be returned to the main menu.

Choice 7, the choice to exit the program must also work correctly. When the user choses 7 they should see something like this:

main (the main function of the program). Below is a screen shot

If the user enters Y or y the program should exit. If the user enters N or n the program should return to the main menu.

Finally, if the user enters a number higher than 7, the program should catch this error so that it does not crash. Instead, when a number higher than 7 is entered, the user should be notified and then returned to the main menu.

Example, If the user enters 8 for their choice, they should see a screen like this:

of what the menu will look like: Even though we wont have

Programs like this that contain a working menu, but have no other real function are often required in the early stages of project so that potential users can give input about the user interface and overall operation. This helps significantly with insuring later user acceptance of the program.

Remember: The code that you submit must be error free and capable of being compiled and run by your instructor! See the lab grading rubric for more information.

And, a suggestion. If your code wont compile, and you receive errors (not warnings, but errors) relating to functions such as the getch() function, check these properties:

that actual code to do all of the things in the menu,

Remember: The code that you submit must be error free and capable of being compiled and run by your instructor! See the lab grading rubric for more information.

One more suggestion. While you are in your project properties, it is a good idea to tell Visual Studio that you are specifically using C and not C++. To do this you will go to your project properties and under C/C++ choose All Options. Then Click on Compile As and change if from Default to Compile As C Code /TC

See the figures below:

the menu must still be functional. That is to say, if a

user enters any of the choices on the menu, they will get

1. Create New Account 2. Cash Deposit 3. Cash Withdrawal Fund Transfer 5. Account information 6. Transaction information 7. Exit Press a choice between the range [1-7]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!