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: 3903167 • 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

inside the class the declaration is as follows:

friend ostream & operator >> (ostream &out, GutBuster c){

   
    out << "G" << c.size << "":" << c.crustType << ":" << c.crustDepth << ":";
    for(int i = 0; i<c.toppingList.size(); i++){
       if (i < c.toppingList.size()-1)
          out << c.toppingList.get(i) << ",";
       else
          out << c.toppingList.get(i) << ".";
    }
    return out;
}

void operator + (String obj) {
      toppingList.add(obj);
}

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