Answered step by step
Verified Expert Solution
Link Copied!

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 :

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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 app

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

Showing the details, evaluate:

Answered: 1 week ago

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

Write a note on Organisation manuals

Answered: 1 week ago