Question: Write a Java program that implements a switch - case statement to display the prices of different meals from a fast - food menu. Your
Write a Java program that implements a switchcase statement to display the prices of different meals from a fastfood menu. Your program should prompt the user to enter the name of a meal, and based on their input, it should print out the price of that meal. Consider the following menu for your switchcase conditions:
Burger: $
Fries: $
Pizza: $
Soda: $
Chicken Nuggets: $
If the user enters a meal name that is not on the menu, your program should print "Sorry, we do not have that item on our menu."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
