# Create a Bank-Account program to calculate an interest earned based on types of accounts. For all account types, a minimal yearly interest is 0.01%. However, the rate is higher based on the total bala

Posted: March 11th, 2022

Create a Bank-Account program to calculate an interest earned based on types of accounts. For all account types, a minimal yearly interest is 0.01%. However, the rate is higher based on the total bala

Create a Bank-Account program to calculate an interest earned based on types of accounts. For all account types, a minimal yearly interest is 0.01%. However, the rate is higher based on the total balance. For a checking account, a yearly interest rate is 0.03% if the total balance is greater than or equal to \$10,000.0. For a savings account, a yearly interest rate is 0.04% if the total balance is greater than or equal to \$20,000.0. For a preferred deposit account, a yearly interest rate is 0.05% if the total balance is greater than or equal to \$50,000.0. Design your program that meets the requirements below. Prompt the user to his/her balance and validate it using a loop. The balance must be a positive number. (2.5 points) Prompt the user to enter a bank account type used to calculate an interest earned that year. Also, validate it using a loop. A valid account type is ‘C’, ‘S’, or ‘P’ (2.5 points). C is for checking, S is for saving, and ‘P’ is for preferred Deposit. Set up the correct conditions to calculate the total yearly interest earned. (10 points) Format the result using two digits after the decimal point and display the charge. (2.5 points) Use appropriate named constants and variables (2.5 points)

### Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

## Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
\$0.00