Question
Users may order one or more pizzas, where each pizza may beeither: small, medium or large. Small pizzas cost $5, medium pizzascost $8 and large
Users may order one or more pizzas, where each pizza may beeither: small, medium or large. Small pizzas cost $5, medium pizzascost $8 and large pizzas cost $12. All pizzas come on a tomato base(for our pizza shop, this will be the only option), and will havethe topping cheese by default, at no extra cost. Users may chooseup to a maximum of four additional toppings (bringing the total tofive) from the following list, where each topping adds anadditional $1 to the price of the pizza: ? Bacon, ? Olives, ? Ham,? Mushrooms, ITECH5403 – Comparative Programming Languages Schoolof Science, Engineering and Information Technology CRICOS ProviderNo. 00103D Page 2 of 4 ? Pineapple, ? Salami, ? Anchovies. A pizzaorder consists of an order for one or more pizzas, where each pizzahas a size, and may optionally include a list of up to fouradditional toppings. Each pizza order must be marked as either tobe collected or to be delivered. If the pizza is to be collectedthen the order requires a name and a phone number to be valid. Ifthe pizza is to be delivered then a name, phone number and addressare required to be valid. In addition, if the order total is lessthan $30 then an $8 delivery fee is added to the total. Theapplication must be error tolerant and capable of acceptingkeyboard input to store a number of pizza orders in memory (they donot have to be persisted to file), as well as displaying an ordersummary which include details of all orders, including: ? Thedetails of each pizza in the order, ? The total cost of the order,and ? The name, phone number and (if required) address of theperson who made the order.
I need the solution in java
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