Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Create a Bank-Account program to calculate an interest earned based on types of accounts

Create a Bank-Account program to calculate an interest earned based on types of accounts

Computer Science

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)

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE