Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package P06;
- import java.util.Scanner;
- public class P03102021UPR6 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int Nylon = Integer.parseInt(scanner.nextLine());
- int Paint = Integer.parseInt(scanner.nextLine());
- int Diluent = Integer.parseInt(scanner.nextLine());
- int Hours = Integer.parseInt(scanner.nextLine());
- double NylonAndtrash = Nylon+2;
- double PriceNylonAndBags = NylonAndtrash*1.5+0.4;
- double PricePaint = Paint*1.1*14.5;
- double PriceDiluent = Diluent*5;
- double PriceTotalMaterials = PriceDiluent+PricePaint+PriceNylonAndBags;
- double PriceWork = Hours*PriceTotalMaterials*0.3;
- double PriceTotal2 = PriceWork+PriceTotalMaterials;
- System.out.println(PriceTotal2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment