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

Computing Il: Exam 1 Part 2 (20 points)- SU18 The Ptomaine Pizza Parlor is intro

ID: 3903160 • Letter: C

Question

Computing Il: Exam 1 Part 2 (20 points)- SU18 The Ptomaine Pizza Parlor is introducing a new pizza caies the nasigned the task of implementing the code to support online ordering of thene pzzn Name ., "GutBuster You have been have the following properties - The size may be 36" or 48 The crustType may be white size may or wheat . The erustdepth may be regular, deep-dish, or Grand Canyon. The toppingsList (represented by a vector) may include any combination of the following: Tomato sauce, cheese, hamburger, sausage, mushrooms, Brussel sprouts and broccoli. properties, and provides the declarations for all of the functions that will be defined in parts B-D. (Note: None of the functions in parts B-D should be written as inline functions.) A (5 points) Create the class definition for a class GutBuster that supports the above ior the GutBuster class

Explanation / Answer

Solution:

Please find below the complete code

GutBuster.cpp

#include<iostream>

#include<string>

#include<vector>

using namespace std;

class GutBuster {

private:

float size;

string crustType;

string crustDepth;

std::vector<int> shoppingList;

public:

GutBuster() : size(0.0), crustType("white"), crustDepth("regular") {}

GutBuster(float s, string type, string depth) : size(s), crustType(type), crustDepth(depth) {}

};

int main() {

GutBuster obj1;

GutBuster obj2 (36, "wheat", "deep-fish");

return 0;

}

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