akosiraff

Download PaymentSchedule CPP

Jul 31st, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/paymentschedule-cpp/
  3. Write a C++ program to output the payment schedule for amount owed when each month
  4. nothing more is charged to the account but only the minimum payment is paid. The output
  5. stops when the balance is fully paid (i.e. no longer > 0).
  6. Input:
  7. Data must be done in a separate function. Input the following: credit card balance, interest rate
  8. on your credit card, and percent of minimum payment. Test data: 624 24, 4
  9. Data must be read from a file called lab6.txt .
  10. Calculate: This function must be called from main() from within the loop.
  11. For each month, calculate the amount of interest to be paid that month (adding this into
  12. balance before calculating minimum payment), total of interest paid, amount of minimum
  13. payment due for the month, and updating new balance.
  14. If the minimum payment is less than $15.00 then set it at $15.00
  15. Output: This function must be called from main() from within the loop.
  16. There needs to be a separate function to output the table heading. Also output the information
  17. input from the file.
  18. There needs to be a separate function to output month, balance at the end of the month, interest
  19. paid that month, minimum payment for that month, and the sum of amount of interest paid so
  20. far.
  21. All output must be redirected to a file. (See b http://www.bankrate.com/calculators/managingdebt/minimum-payment-calculator.aspx)
  22. Sample output:
  23. Balance Owing: $ 624.00
  24. APR as % 24
  25. Percent for minimum payment as % 4
  26. Month Balance Interest Minimum Sum of
  27. this month interest paid
  28. 1 611.02 12.48 25.46 12.48
  29. 2 598.31 12.22 24.93 24.70
  30. 3 585.87 11.97 24.41 36.67
  31. 4 573.68 11.72 23.90 48.38
  32. . . .
  33. 57 31.80 0.92 15.00 388.14
  34. 58 17.44 0.64 15.00 388.78
  35. 59 2.79 0.35 15.00 389.13
  36. 60 0.00 0.06 2.84 389.18
  37. Press any key to continue . . .
  38. Check points:
  39. ? Absolutely no arrays
  40. ? Each function needs as comments Purpose, Pre & Post.
  41. ? Pass by reference only when you must.
  42. ? Your name must be as comment at the top of the source code and output to the file
  43. within your code.
  44. ? Must have a minimum of six meaningful comments in main.
  45. Download: http://solutionzip.com/downloads/paymentschedule-cpp/
Add Comment
Please, Sign In to add comment