So if the new balance is $38.00 then the person must pay the whole $38.00; if the balance is S128 then the person must pay $50; if the balance is S350 the minimum payment is $70 (20% of 350). The program should print the charge account statement in the format below. Print the actual dollar amounts in each place using currency format from the NumberFormat class see Listing 3.4 of the text for an example that uses this class. cS CARD International Statement Previous Balance: Additional Charges: Interest: $4 2$ 2$ New Balance: 2$ Minimum Payment: 2$

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
A Charge Account Statement
Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card
company. The program should take as input the previous balance on the account and the total amount of additional charges
during the month. The program should then compute the interest for the month, the total new balance (the previous balance
plus additional charges plus interest), and the minimum payment due. Assume the interest is 0 if the previous balance was 0
but if the previous balance was greater than 0 the interest is 2% of the total owed (previous balance plus additional charges).
Assume the minimum payment is as follows:
new balance
for a new balance less than $50
$50.00
for a new balance between $50 and $300 (inclusive)
20% of the new balance
for a new balance over $300
So if the new balance is $38.00 then the person must pay the whole $38.00; if the balance is $128 then the person must pay
$50; if the balance is $350 the minimum payment is $70 (20% of 350). The program should print the charge account
statement in the format below. Print the actual dollar amounts in each place using currency format from the NumberFormat
class-see Listing 3.4 of the text for an example that uses this class.
CS CARD International Statement
====
Previous Balance:
Additional Charges :
24
Interest:
New Balance:
Minimum Payment:
Transcribed Image Text:A Charge Account Statement Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card company. The program should take as input the previous balance on the account and the total amount of additional charges during the month. The program should then compute the interest for the month, the total new balance (the previous balance plus additional charges plus interest), and the minimum payment due. Assume the interest is 0 if the previous balance was 0 but if the previous balance was greater than 0 the interest is 2% of the total owed (previous balance plus additional charges). Assume the minimum payment is as follows: new balance for a new balance less than $50 $50.00 for a new balance between $50 and $300 (inclusive) 20% of the new balance for a new balance over $300 So if the new balance is $38.00 then the person must pay the whole $38.00; if the balance is $128 then the person must pay $50; if the balance is $350 the minimum payment is $70 (20% of 350). The program should print the charge account statement in the format below. Print the actual dollar amounts in each place using currency format from the NumberFormat class-see Listing 3.4 of the text for an example that uses this class. CS CARD International Statement ==== Previous Balance: Additional Charges : 24 Interest: New Balance: Minimum Payment:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY