Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Example;
- import java.util.Scanner;
- public class Repainting_06 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double naylon = Double.parseDouble(scanner.nextLine()) + 2;
- double paint = Double.parseDouble(scanner.nextLine()) * 1.1;
- double razreditel = Double.parseDouble(scanner.nextLine());
- int hourMaster = Integer.parseInt(scanner.nextLine());
- double sumMaterials = (naylon * 1.50) + (paint * 14.50) + (razreditel * 5) + 0.40;
- double sumMasters = (sumMaterials * 0.3) * hourMaster;
- double sumAll = sumMaterials + sumMasters;
- System.out.println(sumAll);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment