hi can someone code this for me on c please?
a) Develop an algorithm to solve the following problem. Then write the program in C
to implement it.
€15,000 is deposited into a savings account paying 5% interest and €1,000 is withdrawn
from the account at the end of each year. How many years are required for the savings
account to be depleted? (Note: If at the end of a certain year the balance is €1,000 or less,
then the final withdrawal will consist of that balance and the account will be depleted.)
(b) Use your algorithm to solve the following problem - rework your answer to (1) so
that the amount of money deposited initially is input by the user and the program
computes the number of years required to deplete the account. Be careful to avoid infinite
loops. Devise suitable test cases to coverage test your code.
(






