![brummy309506](/avatars/45443.jpg)
brummy309506
19.02.2021 •
Chemistry
2344 - 21
I'm bored asss f uucckk
wanna talkk
or r
have a great day
Solved
Show answers
More tips
- H Health and Medicine How to Help Men Gain Weight?...
- A Auto and Moto Discovering the Leader: What is the Most Expensive Car in the World?...
- H Health and Medicine Hangover: How to Get Rid of It Quickly?...
- S Style and Beauty How to Choose the Right Fur Coat and Avoid Regrets?...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
Answers on questions: Chemistry
- P Physics How does friction affect a roller coaster?...
- M Mathematics Consider the formula w=fdw=fd, where ww represents work, ff represents force and has units of newtons \left( \dfrac{\text{kg}\cdot\text{m}}{\text{s}^2}\right)( s 2 kg⋅m...
- M Mathematics Which of the following formulas would find the surface area of a right cylinder where his the height, ris the radius, and BA is the base area? Check all that apply A....
Ответ:
Ответ:
2344-21
=2323
okay okay
have a great day too
Ответ:
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));
}
}