drago1520

Untitled

Oct 3rd, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. package P06;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class P03102021UPR6 {
  6. public static void main(String[] args) {
  7. Scanner scanner = new Scanner(System.in);
  8. int Nylon = Integer.parseInt(scanner.nextLine());
  9. int Paint = Integer.parseInt(scanner.nextLine());
  10. int Diluent = Integer.parseInt(scanner.nextLine());
  11. int Hours = Integer.parseInt(scanner.nextLine());
  12. double NylonAndtrash = Nylon+2;
  13. double PriceNylonAndBags = NylonAndtrash*1.5+0.4;
  14. double PricePaint = Paint*1.1*14.5;
  15. double PriceDiluent = Diluent*5;
  16. double PriceTotalMaterials = PriceDiluent+PricePaint+PriceNylonAndBags;
  17. double PriceWork = Hours*PriceTotalMaterials*0.3;
  18. double PriceTotal2 = PriceWork+PriceTotalMaterials;
  19. System.out.println(PriceTotal2);
  20.  
  21.  
  22.  
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment