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

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

ID: 3903161 • Letter: C

Question

Computing III: Exam 1 Part 2 (20 points)-SU18 The Ptomaine Pizza Parlor is introducing a new pizza called the "GutBuster assigned the task of implementing the code to support online ordering of these pizza Name " You have been have the following properties: .The size may be 36" or 48 or wheat. The crustDepth 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 (5 points) Create the class definition for a class GutBuster that supports the above B-D. (Note: None of the functions in parts B-D should be written as inline functions.) and broccoli. A. properties, and provides the declarations for all of the functions that will be defined in parts for the GutBuster class

Explanation / Answer

Please find the "GutBuster" Java class:-

1. GutBuster.java

import java.util.Vector;

public class GutBuster {

private int size;

private String crustType;

private String crustDepth;

private Vector<String> toppingList;

public GutBuster() {

size = 36;

crustType = "white";

crustDepth = "regular";

toppingList = new Vector<String>(0, 1);

}

public GutBuster(int size, String crustType, String crustDepth) {

this.size = size;

this.crustType = crustType;

this.crustDepth = crustDepth;

toppingList = new Vector<String>(0, 1);

}

public int getSize() {

return size;

}

public void setSize(int size) {

this.size = size;

}

public String getCrustType() {

return crustType;

}

public void setCrustType(String crustType) {

this.crustType = crustType;

}

public String getCrustDepth() {

return crustDepth;

}

public void setCrustDepth(String crustDepth) {

this.crustDepth = crustDepth;

}

}

Please let me know in case of any clarifications required. Thanks!

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