Design the required class(es) so that the following expected output is generated. Do not change any given code. Your code should work for any number of arguments in init and setToppings method of pizza class. For simplicity, you can consider there will be only 3 categories of pizzas and they are: Chicken, Beef, Cheese. #Write your code here dom = Dominos("Domino's Pizza") print("1.=================================") p1 = Pizza("Spicy Chicken","Spicy Chicken","Onion","Capsicum") dom.addPizza(p1) p2 = Pizza("Margherita","Mozzarella Cheese") print("2.=================================") p3 = Pizza("Beef Kala Bhuna") print("3.=================================") p3.setToppings("Curried Beef","Capsicum","Paprika","Onion") print("4.=================================") dom.addPizza(p2,p3) p4 = Pizza("Chicken Dominator","Barbecue Chicken,Spicy Chicken,Grilled Chicken") p5 = Pizza("Beefzza","Minced Beef","Beef Pepperoni","Onion","Jalapeno") dom.addPizza(p4,p5) print("5.=================================") dom.showMenu() print("6.=================================") Output: Domino’s. The Pizza Delivery Experts. 1.====================================== 2.====================================== A pizza without toppings cannot be created. 3.====================================== Toppings added to Beef Kala Bhuna pizza. 4.====================================== 5.====================================== Total number of pizzas: 5 Chicken Pizza:2 Name:Spicy Chicken, Toppings: ['Spicy Chicken', 'Onion', 'Capsicum'] Name:Chicken Dominator, Toppings: ['Barbecue Chicken,Spicy Chicken,Grilled Chicken'] Beef Pizza:2 Name:Beef Kala Bhuna, Toppings: ['Curried Beef', 'Capsicum', 'Paprika', 'Onion'] Name:Beefzza, Toppings: ['Minced Beef', 'Beef Pepperoni', 'Onion', 'Jalapeno'] Cheese Pizza: 1 Name:Margherita, Toppings: ['Mozzarella Cheese'] 6.======================================

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
???????? 2: Design the required class(es) so that the following expected output is generated. Do not change any given code. Your code should work for any number of arguments in init and setToppings method of pizza class. For simplicity, you can consider there will be only 3 categories of pizzas and they are: Chicken, Beef, Cheese. #Write your code here dom = Dominos("Domino's Pizza") print("1.=================================") p1 = Pizza("Spicy Chicken","Spicy Chicken","Onion","Capsicum") dom.addPizza(p1) p2 = Pizza("Margherita","Mozzarella Cheese") print("2.=================================") p3 = Pizza("Beef Kala Bhuna") print("3.=================================") p3.setToppings("Curried Beef","Capsicum","Paprika","Onion") print("4.=================================") dom.addPizza(p2,p3) p4 = Pizza("Chicken Dominator","Barbecue Chicken,Spicy Chicken,Grilled Chicken") p5 = Pizza("Beefzza","Minced Beef","Beef Pepperoni","Onion","Jalapeno") dom.addPizza(p4,p5) print("5.=================================") dom.showMenu() print("6.=================================") Output: Domino’s. The Pizza Delivery Experts. 1.====================================== 2.====================================== A pizza without toppings cannot be created. 3.====================================== Toppings added to Beef Kala Bhuna pizza. 4.====================================== 5.====================================== Total number of pizzas: 5 Chicken Pizza:2 Name:Spicy Chicken, Toppings: ['Spicy Chicken', 'Onion', 'Capsicum'] Name:Chicken Dominator, Toppings: ['Barbecue Chicken,Spicy Chicken,Grilled Chicken'] Beef Pizza:2 Name:Beef Kala Bhuna, Toppings: ['Curried Beef', 'Capsicum', 'Paprika', 'Onion'] Name:Beefzza, Toppings: ['Minced Beef', 'Beef Pepperoni', 'Onion', 'Jalapeno'] Cheese Pizza: 1 Name:Margherita, Toppings: ['Mozzarella Cheese'] 6.======================================
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY