Svetakotok
17.03.2020 •
Mathematics
A ringtoss toy is composed of a rectangular prism on top of a cylinder.
The rectangular prism is completely filled with water.
The dimensions of the rectangular prism are shown in the diagram.
What is the volume of the rectangular prism in cubic centimeters?
26 cm3
270 cm3
165 cm3
348 cm3
Solved
Show answers
More tips
Answers on questions: Mathematics
- M Mathematics 16 + 28 = x (4 + 7). Plz help...
- M Mathematics Calisickleroye9vh also answer this is last one thx...
- F French Bonjour, je suis en classe de seconde et je dois faire un essai pour mardi avec cette problématique: En quoi le récit littéraire peut-il etre efficace pour défendre la...
- B Business The term? market in economics refers to a. a place where money changes hands. b. an organization which sells goods and services. c. a legal institution where exchange...
- E English Upon hearing the news of the committee’s plans, the animal shelter workers were overjoyed, and they asked if they could attend the event with some of the animals from...
Ответ:
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));
}
}