Expert Q&A: Features of Java
You will write a Java application to compute and display the number of months needed to pay off credit card debt. Your program will prompt the user for the following three things: the amount which is the amount of money owed on the credit card, the interest rate in percent, and the amount the user plans to pay the credit card company each month. Based on these inputs, the program will compute the number of months required to pay the debt. It will also compute the total amount paid to the credit card company after all payments are made, the total amount of interest paid, and the overpayment.
The total amount paid to the credit card company is the ceiling of the number of months needed multiplied by the monthly amount (which is provided by the user) subtracted from the total amount paid to the credit card company. The overpayment is the amount overpaid to the credit card company, which is an algorithm you'll have to figure out. Details about these computations are given in the Program Requirements section.
The following is a sample run, and the input (shown in bold for demonstration purposes only) and output of your submitted program should be formatted the same way as it runs in Eclipse's console or on a command line. Additional sample runs are included at the end of this document.
Principal: $580.60
Interest Rate (X): 15.9%
Monthly Payment: $106.00
Months Needed To Pay Off: 79
Total Amount Paid: $790.00
Total Interest Paid: $37986.66
Overpayment: $4.43