Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double pagePrice = Double.parseDouble(scanner.nextLine()),
- coverPrice = Double.parseDouble(scanner.nextLine()),
- discountPercentage = Double.parseDouble(scanner.nextLine()),
- designerSalary = Double.parseDouble(scanner.nextLine()),
- teamPercentage = Double.parseDouble(scanner.nextLine()),
- totalPrice = ((pagePrice * 899 + coverPrice * 2)
- * (100 - discountPercentage) / 100 + designerSalary)
- * (100 - teamPercentage) / 100;
- System.out.printf("Avtonom should pay %.2f BGN.", totalPrice);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement