Question
Create a java program to allow a customer to order multiple pizzas in different sizes, crusts, and toppings in one order and display each pizza's
Create a java program to allow a customer to order multiple pizzas in different sizes, crusts, and toppings in one order and display each pizza's details and price and order total to user. The program should initialize order total to 0 and ask user for number of pizzas in the order, and then use a for loop to count up to this number. Inside loop, ask user to pick size, crust, and toppings, and siaplsy this pizza's details and price, and then add the pizza price to order total. After the loop ends, display total number of pizzas user ordered and order total. Here is a sample pricing menu you can use: Small: $8, Medium: $12, Large: $16 Regular crust: No extra charge, Pan Crust: $2 extra, Stuffed Crust: $3 extra (You may charge different based on size or just charge same extra for all sizes, up to you) Toppings: double cheeses: extra $1, pepperoni: $2 extra, sausage: $2 extra, mushrooms: $1 extra, olives: $1 extra (You may provide more types of toppings at your prices)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started