Write a program in java which display the burger Sizes and its prices in tabular form as display below. Program display a message “Sir/Madam Welcome and Which type burger do you want to buy! Please press your choice” . If user want to buy only one burger the bill should be display according to given price, but when user want to buy more burgers , your java program will provide facility to user to buy more burgers and add prices of all burgers and display total price. If user don’t want to buy more burgers your program will display a message.(Thank you sir/Madam) .(Hint use switch and do while loop).
Write a
Berger |
Price |
Press S for small
|
100 |
Press M for medium
|
200 |
Press L for large
|
500 |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images