Summary: This is an example of using LabVIEW MathScript to compute the number of months necessary to pay off a credit card debt using the minimum monthly payment.
A student decides to finance their college education using a credit card. They charge one semester's tuition and then make the minimum monthly payment until the credit card balance is zero. How many months will it take to pay off the semester's tuition? How much will the student have spent to pay off the tuition?
We can solve this problem using LABVIEW MATHSCRIPT. We define the following variables:
The finance charge
Credit cards usually have a minimum monthly payment. The minimum monthly payment is usually a fixed percentage of the balance; the percentage is required by federal regulations to be at least 1% higher than the monthly interest rate. If this minimum payment would be below a given threshold (usually $10 to $20), the minimum payment is instead set to the threshold. For a threshold of $10, the relationship between the balance and the minimum payment can be shown in an equation as follows:
To compute the balance for one month (month
In the following exercises, we will develop the LABVIEW MATHSCRIPT program to compute the number of months necessary to pay the debt. We will assume that the card APR is 14.9% (the average rate on a student credit card in mid February 2006) and that the initial balance charged to the card is $2203 (the in-state tuition at the Polytechnic Campus of Arizona State University for Spring 2006 semester).
Write LABVIEW MATHSCRIPT code to compute the monthly interest rate
APR = 14.9;
r = (1+APR/100)^(1/12)-1;
Write LABVIEW MATHSCRIPT code to compute the minimum monthly payment
bn = 2203;
pn = max((r+0.01)*bn,10);
Write LABVIEW MATHSCRIPT code to compute the balance at month
fn = r*bn;
bn = bn + fn - pn;
Place the code developed for Exercise 3 into a while loop to determine how many months will be required to pay off the card.
This space intentionally left blank.
Modify your code from Exercise 4 to plot the monthly balance, monthly payment, and total cost-to-date for each month until the card is paid off.
This space intentionally left blank.
"This course provides a brief introduction to LabVIEW MathScript, the textual math componenet of LabVIEW. The modules for this course include typical syntax and programming methods commonly used […]"