package Example3_13;
import java.util.*;
public class Example3_13 {
	public static void main(String[] args) {
		boolean done = true;
	    int lampWatt, price;
	    Scanner in = new Scanner(System.in);
	    while(done) {
	        System.out.print("Enter the lamp watt:");
	        lampWatt = in.nextInt();
		    switch(lampWatt) {
		     case 40 :
		       price = 20000;
		       System.out.println("Watt = " + lampWatt 	+ " Price = " + price);
		       break;
		     case 60 :
		       price = 25000;
		       System.out.println("Watt = " + lampWatt + " Price = " + price);
		       break;
		     case 70 :
		       price = 30000;
	           System.out.println("Watt = " + lampWatt 	+ " Price = " + price);
			   break;
		     case 100 :
			 case 150 :
			   price = 40000;
			   System.out.println("Watt = " + lampWatt + " Price = " + price);
			   break;
		     case 200:
				price = 50000;
				System.out.println("Watt = " + lampWatt + " Price = " + price);
			    break;
			  default:
				System.out.println("The value of watt is illegal.");
				done = false;
		    }//end of switch
	    }//end of while
	}
}
