Question: Write a java program to develop a pizza ordering system for a restaurant. The restaurant offers four types of toppings: Olives, Mushrooms, Onions, and Peppers.

Write a java program to develop a pizza ordering system for a restaurant. The restaurant
offers four types of toppings: Olives, Mushrooms, Onions, and Peppers. The program will
allow the customer to place an order for a pizza with one or more toppings. The customer
can see the price of the pizza when adding or deleting a topping before placing the order.
When the customer places the order, you can let other user to place a new order. You will
stop receiving orders when the number of customers reaches the daily limit.
Use the following:
a. Use enumeration called Topping to represent the different types of pizza toppings
(Olives, Mushrooms, Onions, Peppers).
b. The price of each topping is: Olives costs 0.750KD, Mushrooms cost 0.900KD,
Onions cost 0.500KD, and Peppers cost 0.250KD.
c. Use random number generation to generate the daily limit.
Test your program with different combinations of toppings to ensure it functions
correctly.|
Submit the following:
The flowchart
The code
Write a java program to develop a pizza ordering

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 Programming Questions!