-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.java
More file actions
37 lines (30 loc) · 1.07 KB
/
Menu.java
File metadata and controls
37 lines (30 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.util.*;
class Menu{
public static void main(String[] args) {
int sno;
Scanner sc=new Scanner(System.in);
System.out.println("Welcome to Memon Restaurant, Enter the item Sno: to know the price.");
System.out.println("1.Chicken Zinger Burger");
System.out.println("2.Chicken Roll");
System.out.println("3.Chicken Tikka");
System.out.println("4.Chicken Seekh Kabab");
sno=sc.nextInt();
switch(sno)
{
case 1:
System.out.println("The Price for Chicken Zinger Burger is:290/-");
break;
case 2:
System.out.println("The Price for Chicken Roll is:130/-");
break;
case 3:
System.out.println("The Price for Chicken Tikka is:300/-");
break;
case 4:
System.out.println("The Price for Chicken Seekh Kabab is:300/-");
break;
default:
System.out.println("Please Enter a valid number");
}
}
}