package chapter01;
import java.util.*;
public class couponsofsupermarketcustom {
public static void main(String[] args) {
System.out.println("Please input how much you spend in your grociers");
Scanner input=new Scanner(System.in);
double x=input.nextDouble();
if(x<=10)
System.out.println("NO Coupon");
else if(x<=60)
System.out.println(" Coupon is "+" "+0.08*x);
else if(x<=150)
System.out.println(" Coupon is "+" "+0.1*x);
else if(x<=210)
System.out.println(" Coupon is "+" "+0.12*x);
else
System.out.println(" Coupon is "+" "+0.14*x);
}
}
Result: