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 classExplanation / 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;
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.