Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class TailoringWorkshop {
- public static void main (String[] args){
- Scanner scan = new Scanner(System.in);
- int one = Integer.parseInt(scan.nextLine());
- double two = Double.parseDouble(scan.nextLine());
- double three = Double.parseDouble(scan.nextLine());
- double priceSQ = 7;
- double priceRA = 9;
- double usd = 1.85;
- double pokrivka = one * (two + 2 * 0.30) * (three + 2 * 0.30);
- double kar = one * (two/2 ) * (two / 2);
- double pokrivkaDOLAR = pokrivka * priceSQ + kar * priceRA;
- double pokrivkaLV = pokrivkaDOLAR * usd ;
- String USD = "USD";
- String BGN = "BGN";
- System.out.printf("%.2f %s %n%.2f %s",pokrivkaDOLAR,USD,pokrivkaLV,BGN);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement