8.
A bank offers the following rate of interest for fixed deposit:
Time (Years)
Rate (%)
9.0
1 to 2
10.0
2 to 3
11.0
> 3
12.0
The amount (A) after n years is calculated by using the formula :
A = P (1 + r/100)
Where P = Principal amount deposited, ,
R = Rate of interest,
n = Number of years
Write a program to accept deposited amount (P), number of years the amount is deposited for (n) and compute
the accrued amount for an investor.​

8A bank offers the following rate of interest for fixed depositTime YearsRate 901 to 21002 to 3110gt 3120The amount A after n years is calculated by using the f class=