Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ with comments and follow the instructions. Don't use this->statement, pointers, copy and parameterized constructor. Also, again please follow the instructions and try to

In C++ with comments and follow the instructions. Don't use "this->"statement, pointers, copy and parameterized constructor. Also, again please follow the instructions and try to explian each important step with comment. Thanks in advance.

here is the question :

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

ktop/Saeed/CS96201 1 6/Hw/5/pizza Lab%20(3).pdf 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 $2 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 correctly, it will be simple to "build" the app. Your "app" will have a vector to collect and store all pizza orders Your menu will have options to (1) take and price a customer's order, and (2) print all orders When you exit the menu, you will print a summary of pizza sales at the end of the day ktop/Saeed/CS96201 1 6/Hw/5/pizza Lab%20(3).pdf 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 $2 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 correctly, it will be simple to "build" the app. Your "app" will have a vector to collect and store all pizza orders Your menu will have options to (1) take and price a customer's order, and (2) print all orders When you exit the menu, you will print a summary of pizza sales at the end of the day

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

=+management system of the MNE?

Answered: 1 week ago