Question: C++ Create a program to calculate how many months it will take to pay off a credit card given current credit card balance, annual percentage

C++

Create a program to calculate how many months it will take to pay off a credit card given current credit card balance, annual percentage rate, the monthly payment amount. Add 10% to the monthly payment and recalculate the number of months. Report the results in a table. Input: Prompt for the clients name the current credit card balance the Annual Percentage Rate (APR) the amount of money you can be paid monthly. Formula: n = log(1 (Ai/P))/log(1 + i) Where, n = Number of Months to payoff credit card A = Amount on credit card i = Monthly Rate (APR / 12) P = Monthly Payment Amount

  • Enter the APR as an integer. A 22% interest rate would be entered as 22. Have the program convert this to the correct rate: .22.
  • Display the payoff months as a whole number - fractional months dont make sense.
  • Use the literal MONTHS_IN_YEAR rather than 12 in formulas requiring the number of months (if you need any).
  • Keep the Input, Processing, and Output sections of your code separate, use modular hierarchical design. Design functions to prompt and read client name, prompt and read API, prompt and read monthly payments, prompt and read current credit card balance, calculate the number of months (using helper functions as needed) and display the results in a tabulated form.
  • Use one of the C++ libraries for the log() function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!