Create and explain the following program with C++
Create a class named MELTING SPOT that stores information about single pizza. Itshould contain the following:• Private variables to store the size of pizza (“small”, “medium” or “large”), thenumber of cheese topping and number of pepperoni toppings and the name ofthe shop.• Public method to set the data for pizza like size, and number of cheese andpepperoni toppings.• Public method named calculate Cost() that calculates the cost of pizza.• Pizza cost is determined by:Small: 10 $ + 2$ per toppingMedium: 12$ +4$ per toppingLarge: 14$+ 6$ per toppingCreate 3 – 4 pizza objects and display their final cost and the name of name ofthe shop. For example, a small pizza with 2 cheese toppings and 3 pepperonitoppings at melting spot costs around 20$.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here