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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started