Question: Write a C++ program that prompts the user for a savings account balance. The program will then compute the interest as follows: balance < $5000,

Write a C++ program that prompts the user for a savings account balance. The program will then compute the interest as follows:

balance < $5000, the interest rate is .5%

$5,000 <= balance < $10,000, the interest rate is 2.5%

$10,000 <= balance <= $50,000, the interest rate is 5.0%

balance > $50,000, the interest rate is 7.5%

interest = balance * interestRate

After the program computes the interest rate it will output the interest for the balance that was input. A sample run might look like this:

Enter a balance in dollars:

12000

Your interest on $12000 is $600

Enter a balance in dollars:

4854

Your interest on $4854 is $24.27

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!