Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 6 Say that you owe Bank Audi X dollars. The bank charges you an interest of P percent per month on the unpaid balance.
Problem 6 Say that you owe Bank Audi X dollars. The bank charges you an interest of P percent per month on the unpaid balance. You have decided to stop using the card and to pay off the debt by making a monthly payment of N dollars a month. Write a program BankAudi. java that writes out the balance and total payments so far for every succeeding month until the balance is zero or less. For each month, calculate the interest due on the unpaid balance; then calculate the new balance by adding the interest and subtracting the payment. For Example, for a bill of $1000.0, interest rate of 1.5% and monthly payment of $100.0, the program's output will be as follows (you must properly format your output as shown): > java CreditCard 1000.0 Enter the monthly payment (in $): 100.0 Enter the interest rate (as percentage): 1.5 Month: 1 balance: 915.00 Month: 2 balance: 828.73 Month: 3 balance: 741.16 Month: 4 balance: 652.27 Month: 5 balance: 562.06 Month: 6 balance: 470.49 Month: 7 balance: 377.55 Month: 8 balance: 283.21 Month: 9 balance: 187.46 Month: 10 balance: 90.27 Month: 11 balance: -8.38 total payments: 100.0 total payments: 200.0 total payments: 300.0 total payments: 400.0 total payments: 500.0 total payments: 600.0 total payments: 700.0 total payments: 800.0 total payments: 900.0 total payments: 1000.0 total payments: 1100.0
Step 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