Задача 11. Cinema от Complex Conditions
Здравейте, някой може ли да ми каже къде бъркам, че джъджа ми дава само 70 точки?
Благодаря предварително!
public class p11_Cinema {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
String typeProjection = console.nextLine();
int rows = Integer.parseInt(console.nextLine());
int columns = Integer.parseInt(console.nextLine());
int seats = rows * columns;
double price = 0;
switch (typeProjection) {
case "Premier":
price = 12.00;
break;
case "Normal":
price = 7.50;
break;
case "Discount":
price = 5.00;
break;
default:
System.out.println("error");
break;
}
double total = seats * price;
System.out.printf("%.2f", total);
}
}
Ох, Благдаря ти! Не знам защо не успях да го забележа..