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.
Write a Review
Leave a reply Cancel reply
Ask Your Question
We have verified professionals who are ready to answer your question.
Save Time and Money
We choose experts who can quickly answer your question and that suit your budget.
Get Your Answer
Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.