Write a program for the Bank of EE160. The teller will type in the account holder, account type, and account balance. The program will let the teller know if a minimum balance fee needs to be charged, the balance after adjusting for the minimum balance fee, and if the teller has entered in an invalid account type. The program will also let the teller know that the account holder is on the bank's stop list and needs to be handled differently. The Bank of EE160 has saving accounts and checking accounts. For saving accounts, the minimum balance is \$1,000. For checking accounts, the minimum balance is \$500. The program will allow the teller to continue entering in account balances and types until the teller is done entering all of the accounts.
The program will also print out to a file a summary of all the accounts. This summary will contain the total number of accounts, the total amount in all accounts, the percentage of minimum balance fees relative to the total amount in all accounts, and the percentage of accounts that were charged a minimum balance fee. Also, after the teller has finished entering in each account's information, the program will display the account holder information and calculate the percentage the minimum balance fee is relative to the account balance.
After the summary of all the accounts, the program will print out to another file a list of all the accounts entered by the teller, with the following information:
- starting account balance
- ending account balance
Assume the minimum balance fee is $35
Currently, the only person on the stop list is Obama
What is the problem asking for?
A program that takes in the account type and account balance. The program returns whether or not a minimum balance fee should be charged to the account
The program prints a summary of all the accounts detailing the total number of accounts and total amount in all accounts
- input:
- account holder (string)
- account balance (decimal number)
- account type (character)
- exit program (character)
- output:
- message telling the teller if the minimum balance fee should be charged or not ("A minimum balance fee needs to be charged to this account." or "A minimum balance fee does not need to be charged to this account."
- message telling the teller if s/he has entered in an invalid account type
- each account will also have a summary with the following information:
- account holder information
- percentage of the minimum balance fee charged compared to the account balance of each of the accounts
- a file with the accounts summary containing the following information:
- total number of accounts
- total amount in all accounts
- percentage of total minimum balance fees charged compared to the total balance of all the accounts
- percentage of accounts that were charged a minimum balance fee
- a file with a list of accounts entered by the teller, which includes:
- starting account balance
- ending account balance
- message telling the teller to handle the account differently if the account holder is on the stop list