Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ program You have just purchased a stereo system that costs $1000.00 on the following credit plan: no down payment, an interest rate of 18%

c++ program image text in transcribed
You have just purchased a stereo system that costs $1000.00 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.00. A portion of the monthly payment of $50.00 is first used to pay the interest, and whatever is left is used to pay part of the remaining debt. After the first month, you pay 1.5% of $1,000 in interest, which is $15.00. So the remaining $35.00 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. Therefore, you can deduct $35.52 ($50.00 - $14.48 = $35.52) from your current debt. 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. After each month, also print the interest payment, loan payment, and remaining balance on the loan. Specifications: Use Netbeans to create a HW04 project, and a main.cpp file using C++11. Use a loop to calculate the amount of interest, loan payment, and the size of the debt after each month. Print the results to the screen in dollar format (2 values after the decimal point), and use the setw() function to set the width of the numbers being printed so that the dollar and cents align correctly between the numbers. You may also want to use the tab character. Include constants for the monthly interest rate, the monthly payment, and any additional variables you need to solve the problem. The output of your program should look like: Month 1 Interest Payment: Loan Payment: Remaining Loan: $ 15.00 $ 35.00 $965.00 Month 2 Interest Payment: Loan Payment: Remaining Loan: $ 14.47 $ 35.52 $929.48 The loan will take 24 months to pay off. The total interest payments are $197.83

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

when do people tend to be more satisfied with a purchase?

Answered: 1 week ago

Question

=+differences in home- and host-country costs of living?

Answered: 1 week ago

Question

=+derived from the assignment will balance the costs?

Answered: 1 week ago