Write a program in which a user is prompted to enter two variables of the type double. The first input is the “amount” that must be larger than 1000 and the second input is the “rate” in percent. Then your program must keep reduce the “amount” each year by the percentage given in “rate”. Print the amount and the number of year it takes for the amount to go below 100. Use a loop for this problem.

New Download