Fall 2017

Lab08
Multiple Bank Accounts

Due: Thursday December 08, 2016 11:59 PM

Lab08 - Multiple Bank Accounts

Requirements

Program uses correct structured design3 pts
The menu operates as specified2 pts
User is allowed to open up to 50 accounts but no more10 pts
Accounts can be listed5 pts
Accounts can be deposited to individually10 pts
Accounts can be withdrawn from individually10 pts
Invalid inputs from the user are handled in all cases5 pts
At least one module was created and used in the program deisgn2 pts
2 or more modules were created and used in the program design3 pts
Total50 pts

Resources

Objective

to practice using arrays and modules

Instructions

Design a program using pseudocode that will allow a user to interact with a simulated bank. The bank will allow the user to open up to 50 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 50 accounts, don't worry about interest rates or anything other than the balance.

The Menu

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

Menu Description

  1. The open account option should allow the user to open a bank account. The new account will start with a 0 balance. The user should only be allowed to open 50 accounts, if they attempt to open any more accounts after the 50th your program should show them an error.
  2. The list accounts option should allow the user to view the nicely formatted balance of all of their open accounts.
  3. The deposit and withdraw options should allow the user to deposit money in, or withdraw money from a specific account. To do this the user will need to be shown a list of their open accounts and prompted for which one of those account they wish to interact with. If the user chooses an account that isn't opened or doesn't otherwise exist your program should display an error for the user. If they choose an open account then the user should be prompted to enter an amount. The amount the user enters needs to be a positive number for both deposit and withdraw and needs to be less than the balance for withdraw. After either option is successful the user should be able to see that their balance has changed by choosing option 2 from the menu.
  4. See option 3
  5. Quit the application

The program should provide enough output/feedback to the user to be friendly and easy to use.