Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Project: Complex_Conditions - created by borkins on 2017-03-26.
- */
- import java.util.Scanner;
- public class _11_Cinema
- {
- public static void main(String[] args)
- {
- Scanner console = new Scanner(System.in);
- String projection = console.nextLine();
- int rows = Integer.parseInt(console.nextLine());
- int cols = Integer.parseInt(console.nextLine());
- double fee = 0d;
- switch (projection)
- {
- case "Premiere":
- fee = 12.00;
- break;
- case "Normal":
- fee = 7.50;
- break;
- case "Discount":
- fee = 5.00;
- break;
- }
- System.out.printf("%.2f leva%n", (rows * cols * fee));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment