Question: Question 3: write whole program in C language A person deposits Rs. 1000/- in a newly introduced Naya Pakistan investment scheme having 5% profit annually.
Question 3: write whole program in C language A person deposits Rs. 1000/- in a newly introduced Naya Pakistan investment scheme having 5% profit annually. Assuming that all profit is remain deposited in the account, calculate and print the amount of money in his account at the end of each year for 10 years.
Use the following formula for determining these amounts [10] z = i(1+p)n
where
i is the original investment (i.e. the principal)
p is the annual profit rate
n is the number of years
z is the amount on deposit at the end of the nth year.
Sample output
Year Amount on deposit
1 1050.00
2 1102.50
3 1157.63
4 1215.51
5 1276.28
6 1340.10
7 1407.10
8 1477.46
9 1551.33
10 1628.89
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
