GodzillaVsKong
Моля за съдействие. В Judge e 50/100. Не успявам да си открия грешката? import java.util.Scanner; public class GodzillaVsKong { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); double budget=Double.parseDouble(scanner.nextLine()); int numberOfExtras=Integer.parseInt((scanner.nextLine())); double clothesPrice=Double.parseDouble(scanner.nextLine()); double decor=budget*0.1; double sumForClothes=numberOfExtras*clothesPrice; double totalFilmSum=sumForClothes+decor; if(numberOfExtras>150) { double clothesSumDiscount = numberOfExtras * clothesPrice; double discount = clothesSumDiscount * 0.10; double clothesSumDiscount1 = clothesSumDiscount - discount; double decorSum = budget * 0.1; double totalSumForFilm = decorSum + clothesSumDiscount1; double ebitda = budget - totalSumForFilm; if(budget>=totalSumForFilm){ System.out.printf("Action!\nWingard starts filming with "+"%.2f",ebitda); System.out.print(" leva left."); } } if(numberOfExtras>150) { double clothesSumDiscount = numberOfExtras * clothesPrice; double discount = clothesSumDiscount * 0.10; double clothesSumDiscount2 = clothesSumDiscount - discount; double decorSum1 = budget * 0.1; double totalSumForFilm = decorSum1 + clothesSumDiscount2; double ebitda2 = totalSumForFilm-budget; if(budget<totalSumForFilm){ System.out.printf("Not enough money!\nWingard needs " + "%.2f",Math.abs(ebitda2)); System.out.print(" leva more."); } } if(numberOfExtras<150) { } double decorSum = budget * 0.1; double clothesSum = numberOfExtras * clothesPrice; double totalSumForFilm1 = decorSum + clothesSum; double ebitda1 = budget - totalSumForFilm1; if(budget>totalSumForFilm1){ System.out.printf("Action!\nWingard starts filming with "+ "%.2f",ebitda1); System.out.print(" leva left."); } } }