C Language
3 credits
Program compiles without errors | 5 |
Menu functions as specified | 5 |
User is allowed to open up to 5 accounts but no more | 20 |
Accounts can be listed | 10 |
Accounts can be deposited to individually | 20 |
Accounts can be withdrawn from individually | 20 |
Invalid inputs from the user are handled in all cases | 10 |
At least one function was created and used in writing the program | 5 |
2 or more functions were created and used when writing the program | 5 |
Total | 100 pts |
to practice using arrays and functions
Write a C program that will allow a user to interact with a simulated bank. The bank will allow the user to open up to 5 accounts and each account will start with a 0 balance every time the program starts. The program is only responsible for dealing with the balance of up to 5 accounts, don't worry about interest rates or anything other than the balance.
Your application should display the following menu for the user and continue to show them the menu after each of their choices are complete until the user chooses option 5 to quit. The user should be informed if they make an invalid choice and the menu should be redisplayed.
1. Open Account
2. List Accounts
3. Deposit
4. Withdraw
5. Exit
The program should provide enough output/feedback to the user to be friendly and easy to use.