Problem

(Program) a. If money is left in a particular bank for more than 5 years, the bank pays...

(Program) a. If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of 4.5%; otherwise, the interest rate is 3.0%. Write a C++ program that uses the cin object to accept the number of years in the variable numYears and display the correct interest rate, depending on the value input into numYears.

b. How many runs should you make for the program written in Exercise 5a to verify that it’s operating correctly? What data should you input in each program run?

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 4.2