Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

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

Computer Science Oct 29, 2020

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 Solution

For detailed step-by-step solution, place custom order now.
Need this Answer?

This solution is not in the archive yet. Hire an expert to solve it for you.

Get a Quote
Secure Payment