Question: Assignment #5 - Pizza Restaurant Write a C++ program (define a class called Pizza) that has member variables to track the type of pizza (Deep

Assignment #5 - Pizza Restaurant Write a C++ program (define a class called Pizza) that has member variables to track the type of pizza (Deep Dish, Hand-Tossed Pizza, Original Pan-Pizza or Thin N Crispy) along with the size (Small, Medium, or Large), and the toppings Meat toppings (Pepperoni, Italian Sausage, Bacon, Ham, Grilled Chicken, Beef, Pork) and Veggies toppings(Mushroom, Red Onions, Black Olives, Green Peppers, Tomates) Based on the problem, you need to design the program as follows: 1. Use constants to represent the type and size. 2. Include mutator(setter) ad accessor(getter) functions for your class. 3. Create a void function, output Description (), that outputs a textual description of the pizza object. . . 4. Also include a function, compute Price (, that computes the cost of the pizza and returns it as a double according to the following rules: Small pizza = $10+ $2 per topping Medium pizza = $14 + $2 per topping Large pizza = $17 + $2 per topping 5. After the order of the pizza has been inputted, describe the order in format of a bill/receipt of purchase which will describe the type of pizza with the price, size of pizza with the price, the toppings that the customer order with the price (describe in line 4) and Total amount. Output: . tre plus size price Here is your order: Pizza Type: Hand-Tossed Pizza 21zza Size: Medium pizza topping: Pepperoni your total amount is $12 Confira? (Y/N) e to well, Medium of Large) 400 at Assignment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
