Question: Exercise 7 - Custom Toppings using Decorators and Arguments As before, you've been given an addiceCream20 function - DO NOT make any changes to its

Exercise 7 - Custom Toppings using Decorators and Arguments As before, you've been given an addiceCream20 function - DO NOT make any changes to its parameter or body. You must add Decorators to this function to extend its behavior. DO NOT make any changes to the call of addiceCream2. Create two functions - one that will add a "Base" ingredient (one that goes UNDER the ice cream) and one that will add a "Topping" ingredient (one that goes ON TOP of the ice cream). For each of these functions, you'll need to add a Decorator Argument. Using these two new decorator functions. Add the Brownie and Banana as Base ingredients, add the other ingredients as Toppings. Your ice cream should print in the exact same order and style as Exercise 6. Make sure to keep the same spacing and capitalization! Exercise 7 - Custom Toppings using Decorators and Arguments As before, you've been given an addiceCream20 function - DO NOT make any changes to its parameter or body. You must add Decorators to this function to extend its behavior. DO NOT make any changes to the call of addiceCream2. Create two functions - one that will add a "Base" ingredient (one that goes UNDER the ice cream) and one that will add a "Topping" ingredient (one that goes ON TOP of the ice cream). For each of these functions, you'll need to add a Decorator Argument. Using these two new decorator functions. Add the Brownie and Banana as Base ingredients, add the other ingredients as Toppings. Your ice cream should print in the exact same order and style as Exercise 6. Make sure to keep the same spacing and capitalization
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
