Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

Students also viewed these Databases questions

Question

1. How might volunteering help the employer and the employee?

Answered: 1 week ago