Question: In Java Eclipse Create a Size enum in the com package with the following values: small, medium, large. Create a PizzaOrder class in the com

In Java Eclipse Create a Size enum in the com package with the following values: small, medium, large. Create a PizzaOrder class in the com package with the following class variables: orderld (int) size (Size enum), customerName (String), cost (double). Create a constructor that passes in all values and getters for all variables and setters for size and cost. Override the toString method. Create a PizzaOrderDemo class in the com package with the main method. Add the following methods: getAllPizzaOrdersForSize that passes in an array of PizzaOrder objects and a size (Size enum) and returns an array of all pizza orders that match that pizza size. change PizzaSizeAndPrice that passes in a PizzaOrder object, a size (Size Enum) and a price (double). The method returns nothing. GetPizzaOrdersOver that passes in an array of PizzaOrder objects and a price (double) that returns an array of PizzaOrder objects that are more expensive than the price passed into the method. Write tests for these methods in the main method. See next page for the outlines for the enum and classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
