Question
Create specified classes with following requirements. Class PizzaOrder Ability to add/remove pizza(s) An order can have more than one pizza. Ability to specify the store
Create specified classes with following requirements.
Class PizzaOrder
Ability to add/remove pizza(s) An order can have more than one pizza.
Ability to specify the store for which the order is made
Ability to apply special promotion code
Ability to check the order status Possible statuses are ORDER_CREATED, ORDER_CANCELED, ORDER_READY, ORDER_ON_DELIVERY, ORDER_COMPLETE
Has customer information
Class Pizza
Ability to specify toppings Ability to add/remove toppings
Ability to specify price
Ability to specify crust type (thin/thick)
Class Store
Ability to hold a list of employees Ability to add/remove employees
Needs to have address including zip code
Needs to have phone number
Needs to be able to show monthly pizza sales
Class Employee
Has first name, last name
Class Customer
Has first name, last name, phone number, zip code, frequent mileage number
Note:
sort PizzaOrder by order date and total order amount
search PizzaOrder by customer
search PizzaOrder by order date
pull list of PizzaOrder prior to a certain date in sorted order by date
pull list of PizzaOrder after a certain date in sorted order by date
A customer must be able to find one of stores in the same zip code
For searching and sorting above, explain time/space computation complexity using Big O Notation.
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