Question: Using Java, please complete #15(last picture)! (The other pictures are all of the previous steps.) Or Modify the main method in Display 4.16 to include
Using Java, please complete #15(last picture)! (The other pictures are all of the previous steps.)




Or Modify the main method in Display 4.16 to include tests of the new mo 11. Create a class named Pizza that stores in the new meth pizza. It shold contain the following: te followied Pizza that stores information about a single small, medium oppin rivate instance variables to store the size of the pizza (either sm or large), the number of cheese toppings, the number of pepperoni ton and the number of ham toppings Constructor(s) that set all of the instance variables Public methods to get and set the instance variables. A public method named cal of the pizza. ccost ( that returns a double that is the co Pizza cost is determined by: Small: $10 $2 per topping Medium: $12$2 per topping Large: $14$2 per topping d getDescription( ) that returns a String contain- public method name ing the pizza by calcCost( ). size, quantity of each topping, and the pizza cost as calculated several pizzas and output their descriptions. For Write test code to create eese, one pepperoni and two ham toppings example, a large piza with one cheese, one pepperoni o should cost a total of $22. 1 12. This programming project extends Programming Project 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
