Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program to output the payment schedule for amount owed when each month nothing more is charged to the account but only the

Write a C++ program to output the payment schedule for amount owed when each month nothing more is charged to the account but only the minimum payment is paid.The output stops when the balance is fully paid (i.e. no longer > 0).Input: Data must be done in a separate function. Input the following: credit card balance, interest rate on your credit card, and percent of minimum payment. Test data: 624 244Data must be read from a file called lab6.txt .Calculate: This function must be called from main() from within the loop.For each month, calculate the amount of interest to be paid that month (adding this into balance before calculating minimum payment), total of interest paid, amount of minimum payment due for the month, and updating new balance.If the minimum payment is less than $15.00 then set it at $15.00if you owe at least $15.00 or the minimum payment will be just what you owe if you oweless than $15.00.Output:This function must be called from main() from within the loop.There needs to be a separate function to outputthe table heading. Also output the information input from the file.There needs to be a separate function to output month, balance at the end of the month, interest paid that month, minimum payment for that month, and the sum of amount of interest paid so far.All output must be redirected to a file.(See bhttp://www.bankrate.com/calculators/managing-debt/minimum-payment-calculator.aspx)Sample output:Balance Owing: $ 624.00APR as % 24Percent for minimum payment as % 4Month Balance Interest Minimum Sum ofthis month interest paid1 611.02 12.48 25.46 12.482 598.31 12.22 24.93 24.703 585.87 11.97 24.41 36.674 573.68 11.72 23.90 48.38. . .57 31.80 0.92 15.00 388.1458 17.44 0.64 15.00 388.7859 2.79 0.35 15.00 389.1360 0.00 0.06 2.84 389.18Press any key to continue . . . Check points:Absolutely no arraysEachfunction needs as comments Purpose, Pre & Post.Pass by reference only when you must.Your name must be as comment at the top of the source code and output to the filewithin your code.Must have a minimum of six meaningful comments in main.

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

4. Show the trainees how to do it again.

Answered: 1 week ago

Question

8. Praise the trainees for their success in learning the task.

Answered: 1 week ago