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).

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

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).

 

Berger

Price

Press S for small

 

100

Press M for medium

 

200

Press L for large

 

500

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT