The problem asks me that given "n" number of products request a conversion of dollars to pesos, the dollar has a value of $ 19.10, and tells me that if the purchase is $ 300 no discount is applied, if the purchase goes from $ 300 to $ 1000 40% discount applies, and if the purchase is greater than $ 1000 60% discount applies
public static void main(String[] args) {
Scanner leer=new Scanner (System.in);
System.out.println("Introduzca la cantidad de dinero en dolares");
int dolar=leer.nextInt();
double a,b;
a=19.10;
b=dolar*a;
double N = 0,monto =;
if(N<=300){
monto=N;
System.out.println(monto);
}
else if(N>=300 && N>=1000){
monto= N-(N*0.4);
System.out.println(monto);
}
else if(N>1000){
monto= N-(N*0.6);
System.out.println(monto);
}
else{
System.out.println(N);
}
}