Write a menu-driven C++ program that allows a user to select from the following items: Pizza, Cheeseburger, and Hot Dog. Pizza should be represented by the integer value 1. Cheeseburger should be represented by the integer value 2. Hot Dog should be represented by the integer value 3. Validate the input that the user enters; what is allowed to be entered is 1, 2, or 3. If the user enters any other number, ask him or her to enter a correct number.
Based on the choice from the user, a list of toppings should be shown on the screen as a menu. Output to the screen three toppings that could be included on the user's item. For example, if the user selects pizza, three possible choices that could be displayed are Extra Cheese, Beef, and Chicken. Ask the user to enter his choice as an integer value. Extra Cheese should be represented by the value 1. Beef should be represented by the value 2. Chicken should be represented by the value 3. Validate the input that the user enters; what is allowed to be entered is 1, 2, or 3. If the user enters any other number, ask him or her to enter a correct number.
After the user is done with his or her order, print out a message that shows the user his or her complete order. For example:
You ordered Pizza with toppings of Extra Cheese.
DO NOT PUT ALL OF YOUR INSTRUCTIONS (C++ CODE) IN THE MAIN
FUNCTION!
THE MAIN FUNCTION SHOULD CONTAIN CALLS TO OTHER USER-DEFINED
FUNCTIONS.
USE AS MANY USER-DEFINED FUNCTIONS AS POSSIBLE.