1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zhannawk [14.2K]
3 years ago
11

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).
Computers and Technology
1 answer:
WITCHER [35]3 years ago
5 0

Answer:

import java.util.*;

import java.text.*;

class CreditCardBill

{

public static void main(String[] args)

{

Scanner sc = new Scanner(System.in);

NumberFormat defaultFormat = NumberFormat.getCurrencyInstance(Locale.US);

System.out.println("CS Card International Statement");

System.out.println("===============================");

System.out.print("Previous Balance: $");

double prevBalance = sc.nextDouble();

System.out.print("Additional Charges: $");

double addCharges = sc.nextDouble();

double interest;

if(prevBalance == 0)

interest = 0;

else

interest = (prevBalance + addCharges) * 0.02;

System.out.println("Interest: "+defaultFormat.format(interest));

double newBalance = prevBalance + addCharges + interest;

System.out.println("New Balance: "+defaultFormat.format(newBalance));

double minPayment;

if(newBalance < 50)

minPayment = newBalance;

else if(newBalance <= 300)

minPayment = 50.00;

else

minPayment = newBalance * 0.2;

System.out.println("Minimum Payment: "+defaultFormat.format(minPayment));

}

}

You might be interested in
You install a new driver, but your device still doesn't work. What is the first thing you should do?
Lina20 [59]

restart the computer then contact customer service

7 0
3 years ago
What's usually kept in database?
Levart [38]
I think this is the answer. I tried. Databases<span> may be </span>stored<span> on a computer and examined using a programs.</span>
7 0
4 years ago
Read 2 more answers
After an object has been instantiated, its methods can be accessed using the object's _____, a dot, and a method call
BigorU [14]
<span>After an object has been instantiated, its methods can be accessed using the object's identifier, a dot, and a method call.
</span>DOI stands for D<span>igital Object Identifier, to permanently identifies an article or document and link to it on the web and can be  </span><span>a string of numbers, letters and symbols.</span>
5 0
3 years ago
3. Run the C-LOOK algorithm (requests can only be serviced when the head is moving toward higher numbered tracks); the head is c
o-na [289]

Answer:

See explaination.

Explanation:

An algorithm is specifically defined as the step by step method or process of achieving any type of result.

Please kindly see the attached file for the C algorithm that fulfils the answer of the given problem.

3 0
3 years ago
An employee has been writing a secure shell around software used to secure executable files. The employee has conducted the appr
Marat540 [252]

Since the employee has been writing a secure shell around software used to secure executable files and he has also conducted a self-test, he seems to be working in the development environment.

C. Development

<u>Explanation:</u>

The development environment requires an employee to work with algorithms and programming techniques to make programs/software's that are further passed on to the testing department to ensure that they are ready to be launched or deployed.

Although it is the job of testing environment and testers to conduct tests on the developed software's/programs, it is always a good practice to run some self-tests to ensure the efficiency and accountability of a program/software.

3 0
3 years ago
Other questions:
  • By default, power search will
    14·1 answer
  • Questions
    15·1 answer
  • Successful Alignment of IT with Business/Project Prioritization Refer to the readings for this week on aligning IT to the busine
    10·1 answer
  • A binary message consisting of four bits was sent to you by a friend. The message was supposed to be ABAB. Unfortunately, your f
    8·1 answer
  • Which game would be classified as an advergame? A. Tomb Raider B. Fifa Soccer C. Prince of Persia D. Flower
    9·1 answer
  • What is Identity Theft?
    8·1 answer
  • Read the Python program below: num1 = int(input()) num2 = 10 + num1 * 2 print(num2) num1 = 20 print(num1) Question 1 When this p
    6·1 answer
  • In this line of code, what does 144 refer to?
    12·1 answer
  • What does this mean?​ pls help me
    12·1 answer
  • Which of the statements below are true? Which are false?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!