You have just purchased a stereo system that costs $1000 on the following credit plan: no down payment, an interest rate of 18% per year (and hence 1.5% per month), and monthly payments of $50. The monthly payment of $50 is used to pay the interest, and whatever is left is used to pay part of the remaining debt. Hence, the first month you pay 1.5% of $1000 in interest. That is $15 in interest. The remaining $35 is deducted from your debt, which leaves you with a debt of $965.00. The next month you pay interest of 1.5% of $965.00, which is $14.48. Hence, you can deduct $35.52 (which is $50-$14.48) from the amount you owe.

Write a C++ program that will tell you how many months it will take you to pay off the loan, as well as the total amount of interest paid over the life of the loan. Use a loop to calculate the amount of interest and the size of the debt after each month.

The final program need not output the monthly amount of interest paid and remaining debt, but you may want to write a preliminary version of the program that does output these values.

The last payment may be less than $50 if the debt is small, but do not forget the interest. If you owe $50, then your monthly payment of $50 will not pay off your debt, although it will come close. One month's interest on $50 is only 75 cents.

Solution Preview

Attached solution (310232.cpp) makes use of a while loop, but a for loop, though ...

Solution Summary

Solution makes use of a while loop to achieve the goal. It also introduces the concept of conditional compilation.

There are two kinds of feedback loops that maintain homeostasis and equilibrium in an organism. What are they? Explain your answer, and provide an example of each.

You have already written the code for the four loop problems which you will now combine into one program with four distinct methods. For this assignment you will write methods, two value returning methods and two void methods. You may choose which of the four problems are coded into which method. Each method must represent one o

Create a program that asks the user to enter a number from 1 to 50.
Print the statement "Programming is fun" the number of times entered by the user using a for loop.
Print the statement "Spring break is fun" the same number of times using a while loop.

Most programming languages do not allow you to ask two or more questions in a single comparison by using a logical And Operator
Most programming languages allow you to ask two or more questions in a single comparison by using logical OR operator
In an AND situation, first ask the question that is more likely to be true.

Hi, I am currently learning about feedback loops and the ideas behind balancing and reinforcing loops and whether or not that is useful. However, I am having some difficulty fully understanding the topic and answering the following questions below.
Questions:
- Can you provide examples of these "loops" in an organization to

I need to know how to find all possible lengths, widths & heights of a given volume of a rectangular prism. I'm writing a program in Java that takes the user inputted volume of a rectangular prism and then tells the user all of the possible lengths, widths & heights are for that given volume. I just don't know the calculations t

"The do while loop is enough to solve any problem that uses looping and no other repetition structure is required." Discuss this statement by giving examples.