Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone help me program this please? PizzaOrder Class Create a class called

ID: 3547371 • Letter: C

Question

Can someone help me program this please?

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

[/CODE]
#include <iostream>

#include "Pizza.h"

using namespace std;


int main()
{
Pizza P;
cout << "Please enter phone number: " << endl;
cin >> P.setPhoneNumber();


cout << "The address is: "<< P.getAddress() << endl;



return 0;
}

class Pizza
{
public:
void setAddress();
void setName();
void setPhoneNumber();
char getAddress();
char getName();





private:
char Address;
char Name;
char PhoneNumber;

};

#include "Pizza.h"


char name, adr, phone;

void Pizza::setName()
{
Name = name;
}

void Pizza::setPhoneNumber()
{
PhoneNumber = phone;
}

void Pizza::setAddress()
{
Address = adr;
}

char Pizza::getName()
{
return name;
}

char Pizza::getAddress()
{
return adr;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote