Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have just purchased a stereo system that cost $1,000 on the following (pretty bad) credit plan: no down payment, an interest rate of 18%

You have just purchased a stereo system that cost $1,000 on the following (pretty bad) credit plan: no down payment, an interest rate of 18% per year (1.5% per month), and monthly payments of $50. The monthly payment of $50 is used to pay the interest first, and whatever is left is used to pay part of the remaining debt (similar to a mortgage). For example: the first month you pay 1.5% on $1,000 or $15 in interest and the rest ($35) is deducted from your debt, which puts you at a debt of $965.00. In the second month, your interest is $14.48 (1.5% of $965.00) and from your $50 payment, only $35.52 go towards the debt, leaving you with $929.48 in debt and so on. Write a 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 and the overall amount paid. Use a loop to calculate the amount of interest and the size of the debt after each month. The last payment may be less than $50 if the debt is small, but do not forget the interest. If you owe exactly $50.00 for your last month, then your monthly payment of $50 will not pay off your debt, though it will come very close (one months interest on $50.00 is 75 cents).

Break down the program into functions that perform parts of the computations, similar to the question above. Output current values for all variables that are part of the loan in a table as follows (use 2 decimal places for variables that need it and right-align each column):

Month # Interest Principal Balance Total Interest Total Paid

1 $15.00 $35.00 $965.00 $15.00 $50.00

2 $14.48 $35.52 $929.48 $29.48 $100.00

etc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

Explain the differences between capital and human capital.

Answered: 1 week ago