Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a pizza ordering program in java that includes an Order class that stores information about the pizza (my pizza shop will have 2 pizza

Create a pizza ordering program in java that includes an Order class that stores information about the pizza (my pizza shop will have 2 pizza sizes and 3 toppings to choose from: mushrooms, peppers, and onions). If my store has 2 pizza sizes & 3 toppings mushrooms, peppers, and onions then a customer orders 1 large pizza with extra cheese and onions and 1 medium pizza with peppers and onions, then the class would store Large pizza: 1 Medium pizza: 1 Cheese : 3 (since one pizza has extra) Peppers: 1 Mushrooms: 0 Onions: 2. Info will be entered manually by the user. Then add one of these Order objects into an ArrayList that stores the order details for the full day. In the Main program, you'd have a menu of choices like: upload an order and find profit. If the user chooses to add an order, you create an Order object and add it to the ArrayList. If the user chooses to calculate the profit for the day, you'd have some constants in your Main program that stores the profit margin per item, like: Large pizza profit = 3.0 medium pizza profit = 2.5 cheese profit = .75 peppers profit = .50 mushrooms profit = .30 onions profit = .20 and then total up the quantity of each ingredient used and find the total profit.

Program must include:

- 1 constructor

- 2 classes (one can be Main)

-2 additional methods (one can be main())

- 1 try...catch block

- 1 loop

- 1 conditional statement

- input and output statements

- variables

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

5. Describe the relationship between history and identity.

Answered: 1 week ago