![addisonrausch](/avatars/29546.jpg)
addisonrausch
26.03.2021 •
Chemistry
Hi can someone pls help me with this
Solved
Show answers
More tips
- F Family and Home How to Choose a Baby Stroller: Tips from Experienced Parents...
- H Health and Medicine 5 Simple Steps to Quit Smoking for Good...
- C Computers and Internet How to Download Videos from YouTube? Simple Steps to Download Any Content...
- H Health and Medicine What is the Normal Blood Sugar Level in a Healthy Person?...
- S Style and Beauty How to Get Rid of Acne: Scientifically Proven Methods...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- C Computers and Internet How to Delete Your Account on Odnoklassniki...
- H Health and Medicine 10 Simple and Effective Tips on How to Lose Weight in a Week...
- F Food and Cooking What s the Best Rice for Cooking Plov?...
- F Family and Home How to Get Rid of Your Neighbors?...
Answers on questions: Chemistry
- C Chemistry Plz . i just need someone to check answer. : (a student combined water sugar and salt in a beaker. which of the following statements is true? a. the individual substances...
- C Chemistry Which of the following refers to a chemical property color reactivity boiling point volume...
- C Chemistry Nitrogen has five valence electrons. what is the correct lewis structure for nitrogen?...
- C Chemistry calculate the quantity of heat gained or lost by 25.0 g of water is the temperature changes from -10° to 85°...
- C Chemistry When testing a hypothesis, what type of data can be taken?...
- C Chemistry Difference between shell and subshell?...
- C Chemistry What might be done to prevent acid rain damage to objects made from metal and carbonate such as lime stone identify a metal object that can be damaged by acid rain...
- C Chemistry What is lymph? oxygen-rich blood on its way to body tissues plasma circulating in lymphatic vessels a lymphoid tissue that filters blood an organ that hosts lymphocytes...
- M Mathematics If 85% of kids like to read and 30 kids do not how many kids like to read?...
- B Biology If one sample of food contains 200 calories and another contains 300 calories, which statement applies? a. the200 calorie food contains more potential energy than...
Ответ:
Blank 1: increases
Blank 2: increases
Explanation:
Ответ:
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));
}
}