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 switch-case statement to display the prices of different meals from a fast-food 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 switch-case conditions:
Burger: $5.99
Fries: $2.49
Pizza: $7.99
Soda: $1.49
Chicken Nuggets: $4.99
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!