Question: Using JavaScript design and implement a program that will allow you to determine the length of time needed to pay off a credit card balance,

Using JavaScript design and implement a program that will allow you to determine the length of time needed to pay off a credit card balance, as well as the total interest paid.

The program must implement the following functions:

1. displayWelcome

This function should display the welcome message to the user explaining what the program does.

2. calculateMinimumPayment

This function calculates the minimum payment. It should take balance and interest rate as arguments and return the minimum payment.

So the value you display for minimum payment is the value you get from this method. Do not use a literal hardcoded value when you display the minimum payment!

3. displayPayments

This function displays the actual payment schedule. It should take the balance, monthly interest rate and minimum payment as arguments.

Use the 1500, 18% and 2% literal values.

This program will determine the time to pay off a credit card and interest paid based on the current balance, the interest rate, and monthly payments made.

Balance on the credit card is 1500.

Interest rate is 18.

Assuming the minimum payment of 2% of the balance ($20 min)

Your minimum payment would be $30.00

Payoff Schedule.

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!