Write a program for the Bank of EE160. The teller will type in the account type and account balance. The program will let the teller know if a minimum balance fee needs to be charged. 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 a summary of all the accounts with the total number of accounts and the total amount in all accounts
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 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."
- accounts summary with the following information:
- total number of accounts
- total amount in all accounts