Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++ with comments and follow the instructions please here is the question : Thanks in advance Pizza Ordering System This lab uses vectors in
In C++ with comments and follow the instructions please
here is the question :
Thanks in advance
Pizza Ordering System This lab uses vectors in TWO wavs A list of pizza orders (in the "app") A vector INSIDE the class to keep a list of pizza toppings Make sure you have a clear vision of this before you start coding. READ THE INSTRUCTIONS SEVERAL TIMES Implement this lab with THREE files (pizza.h, pizza.cpp, app.cpp) PizzasRUs needs a system to create and process customer orders. They sell pizzas in 3 sizes small, medium, large. The user can add as many toppings as they like. Pizza pricing: Small = 10, medium = 14, large = 17 Plus S2 for each topping Create a class called Pizza that can be used to process pizza orders. Required class attributes and functions are as follows Class attributes Customer name (you can make it a single name, no spaces) Size of pizza (you decide whether to use string or char) A VECTOR of strings that represents the toppings Class Functions Default constructor set/get for size (validate that size is only S, M, L- any case) set/get for name addTopping -this function receives a string representing a topping, adds to to the vector in the class * clearTopping - this function resets the topping vector to empty (use .clear() function) getPrice - this function calculates are returns the price of the pizza display - this function displays the pizza order in the format shown in sample output Make sure you code AND TEST EACH CLASS FUNCTION FIRST. If they all work correctlv, it will be simple to "build" the appStep 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