Professional Documents
Culture Documents
*;
int code=kb.nextInt();
String item2="chair";
String item3="wardrobe" ;
switch(code)
case 1:System.out.println("Your item is " +item+ " The price before tax is ,"+price+" your code is
"+code+". The tax is "+tax+". The price after tax is "+fp);
break;
case 2:System.out.println("Your item is " +item2+ " The price before tax is ,"+price2+" your code is
"+code+". The tax is "+tax3+". The price after tax is "+fp3);
break;
case 3:System.out.println("Your item is " +item3+ " The price before tax is ,"+price3+" your code is
"+code+". The tax is "+tax3+". The price after tax is "+fp3);
break;
break;
}