where is the problem?
package advancedConditionalStatements;
import java.util.Scanner;
public class P12TradeComissions {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String town = scanner.nextLine();
double sales = Double.parseDouble(scanner.nextLine());
boolean isValid=true;
double commission = 0;
if (town.equals("Sofia")) {
} else if (sales >= 0 && sales <= 500) {
commission = sales * 0.05;
} else if (sales > 500 && sales <= 1000) {
commission = sales * 0.07;
} else if (sales > 1000 && sales <= 10000) {
commission = sales * 0.08;
} else if (sales > 10000) {
commission = sales * 0.12;
} else if (town.equals("Varna")) {
} else if (sales >= 0 && sales <= 500) {
commission = sales * 0.045;
} else if (sales > 500 && sales <= 1000) {
commission = sales * 0.75;
} else if (sales > 1000 && sales <= 10000) {
commission = sales * 0.10;
} else if (sales > 10000) {
commission = sales * 0.13;
} else {
isValid=false;{
} else{
isValid=false;{
} else if (town.equals("Plovdiv")) {
} else if (sales >= 0 && sales <= 500) {
commission = sales * 0.055;
} else if (sales > 500 && sales <= 1000) {
commission = sales * 0.08;
} else if (sales > 1000 && sales <= 10000) {
commission = sales * 0.12;
} else if (sales > 10000) {
commission = sales * 0.145;
}else{
if isValid=false;{
} else {
isValid=false;{
}
System.out.printf("%2.f", commission);
}else {
System.out.prinln("error");
}
}
}192.168.l.l routerlogin 192.168.0.1