![20calzoy](/avatars/27874.jpg)
20calzoy
29.01.2021 •
Mathematics
Can someone sub to my youttube channel pls, its called Yakobu, it would really help out :)
Solved
Show answers
More tips
- H Health and Medicine How to Choose the Right Tanning Cream?...
- C Computers and Internet How to Download Movies from Torrents?...
- S Style and Beauty How to Sew Harem Pants?...
- C Computers and Internet Е-head: How it Simplifies Life for Users?...
- F Family and Home How to Choose the Best Diapers for Your Baby?...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
Answers on questions: Mathematics
- M Mathematics 1/2 what is the slope of line p? complete done how can i type it in the computer...
- M Mathematics Which of the following lines are parallel to the line y = 7x + 2/3? y = -1/7x y = - 1/7x - 12 y = 1/7x - 3/2 y = -7x + 3/2...
- M Mathematics ABCD is square forces 1,2,3,4 and 2.828427125newtons act at a point in directions AB, BC, CD, DA and AC.find the resultant....
- M Mathematics What are the solutions to the equation...
- M Mathematics A ship sailed 30 kilometers in 1 1/2 hours. What is was its rate in kilometers per hour? 1) 20 2)30 3)45 4)90 5)Not enough information is given....
- M Mathematics 38) A man completes a job in 5 days working 8 hours a day. How many days will he take to complete the same job working 2 hours overtime per day in addition?...
- M Mathematics Helo guys see my picture...
- M Mathematics The family trip to Grandma s consisted of both a train ride and a car ride. The average speed of the train ride was 74 miles per hour, and the average speed of the car ride...
- M Mathematics If √3CosA = sin A , find the acute angle A...
- M Mathematics I need matrices of rotation 90 clockwise and anticlockwise as well as 180degrees...
Ответ:
sure
Step-by-step 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));
}
}