Answer:
K
Explanation:
Using C++
Your program should accept y or n for input to all questions, and does not need to handle invalid inputs.
First, your program should ask the user if they want pizza. If not, your program should exit without creating and saving any image.
However, if the user does want pizza, your program should ask about toppings, first tomato sauce, then cheese, then pepperoni, then jalapeno, then onion. (Make sure you spell the toppings correctly, because the unit tests are are checking for exact matches!) For each topping, the user can respond y or n.
Finally, your program should save the pizza image to pizza.bmp, and tell the user the filename so they can find it.
Here is an example where the user wants a pizza with all the toppings:
Welcome to PizzaMaker 2.0!
Would you like a pizza?
(y/n): y
Would you like tomato sauce?
(y/n): y
Would you like cheese with that?
(y/n): y
Would you like pepperoni?
(y/n): y
Would you like jalapeno with that?
(y/n): y
Would you like onion?
(y/n): y
Great! Your pizza is at pizza.bmp. Enjoy!
Note: You must add toppings in the specified order here. This is called a "spec" (for specification), and it's important to implement exactly to the "spec" so that the customer knows what they are getting.