Can someone help me program this in C++ PizzaOrder Class Create a class called P
ID: 3547336 • Letter: C
Question
Can someone help me program this in C++
PizzaOrder Class
Create a class called PizzaOrder that has the following members:
Note there is no total price member. You should not add one.
You should supply all of the following public instance methods:
PizzaOrder should be a class distinct from (and not contained within) your main class (which we call Foothill).
Main Driver
From your main() inside Foothill test your class by doing the following:
Notice that you must show the current pizza value (with or without price) after each choice.
Assume that the total price of a pizza (including toppings) increases beyond that of a small by 15% for a medium and 25% for a large.
Make sure all mutators, constructors and other methods that affect private data adequately test for illegal values and, if possible, return a bool that reports the results of this test.
Global-Scope Helpers for main()
Use the following from main() to keep some of the I/O micromanagement off its back:
Option A Sample Run
Explanation / Answer
This is the output that I want to get ....
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <iostream> #include <string> using namespace std; //#include "PIZZA.cpp" // You supply this file //Class PizzaStore class PizzaStore { string name; string address; string topping; int counter; // public: int PizzasWaiting() { return counter = 0;} string Order(string n, string a, string t) { name = n; address = a; topping = t; } }; int main() { //Class PizzaStore PizzaStore PS; cout << PS.PizzasWaiting() << " pizzas are waiting to be delivered "; PS.Order("Rick","1234 Elm Street","Pepperoni"); cout << PS.PizzasWaiting() << " pizzas are waiting to be delivered "; PS.Order("Stewie","31 Spooner Street","Anchovies and Jalapenos"); cout << PS.PizzasWaiting() << " pizzas are waiting to be delivered "; } Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.