Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A credit card company needs to calculate monthly interest and minimal payment for a card holder based on their balance from the previous month, and

A credit card company needs to calculate monthly interest and minimal payment for a card holder based on their balance from the previous month, and display the result in the monthly statement for the card holder.

The interest is calculated using the balance amount from the previous month * APR (annual percentage rate) / 12. E.g., if a card holder has $5000 balance from the previous month, and the APR for this credit card is 20%, the interest is calculated as: 5000 * 20 / 100 / 12 = 83.33

Thus the new balance of the current month will be the balance from the previous month plus the interest. In the example above, the new balance will be: 5000 + 83.33 = 5083.33

The minimal payment is calculated as 1% of the new balance this month. E.g., in the example above, the minimal payment is calculated as: 5083.33 * 1 / 100 = 50.83

Using JGrasp, write a program that take user input of their previous month balance and the APR of a credit card. Calculate the interest and the minimal payment for the current month, and display the summary in the form like below. (10 pts)

Sample format for the summary:

Previous balance: $5000

Interest amount: $83.33

Balance this month: $5083.33

Minimal payment this month: $50.83

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions