Question
If you carry a balance on a credit card, it can be nice to see how long it would take to payoff the card. For
If you carry a balance on a credit card, it can be nice to see how long it would take to payoff the card. For this scenario, you should design a Java application the prints a credit card payment schedule.
Inputs for your program should include: Customers name (first and last), the account number (as an integer), the current balance (as double) and the percent of the balance that will paid off each month (i.e. 5% as double). Your program should use the Java Scanner class to allow the user to enter the input from the Eclipse console. Write a simple Java program with Eclipse using a main method to call other methods of the class. Other methods should be used to get initial values for a credit card balance from the user and output a payment schedule report to the user.After receiving the input, print a report to the Eclipse console that includes: a header showing the input information and a table of payments. Sample output is shown in Figure 1.
Assume the following:
At the beginning of every month 1.5% interest is added to the balance.
The customer payment will be calculated using the monthly balance (including the interest) and the Percent to Pay input.
The ending balance can be calculated using: beginning balance + interest - payment.
Assume that when the monthly en ding balance is less than the initial monthly payment, the customer can afford to pay off the remainder (plus interest) in the next month.
You can use the Java NumberFormat class to make values appear as currency when printed.
figure 1:
75 24 15 18 06 55 42 46 49 33 83 84 23 89 71 57 48 11 63 87 79 32 41 01 08 58 00 877 75 36 35 69 34 28 49 94 61 48 54 76 14 65 30 86 93 98 96 10 31 59 93 33 79 29 29 00 - st 50 85 26 72 22 77 36 98 64 32 03 77 53 31 11 93 76 61 47 34 23 12 02 94 86 78 71 | 123456789 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Fi La Ac BaStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started