The interest rate paid on funds deposited in a bank isdetermined by the amount of time the money is left on deposit. Fora particular bank, the following schedule is used:
Time on Deposit Interested Rate
Greater than or equal to 15 years 16.5 percent
Less than 15 years but greater than or equal to 10 years 11.5percent
Less than 10 years but greater than or equal to 6 years 7.0percent
Less than 6 years but greater than or equal to 3 years 3.0percent
Less than 3 years but greater than or equal to 1 year 1.9percent
Less than 1 year 1.1 percent
Write a program that accepts the time that funds are left ondeposit and displays the interest rate that corresponds to the timeentered. use cout and cin as these are the commands we are allowedto use at the moment.