Write a program that will allow the user to enter which dish they wish to order. Then ask the user to enter any ingredients they want to add. Then ask the user to enter any ingredients they wish to remove. When the user is finished entering the data, print out the kitchen receipt formatted as follows:
Dish Name
+ Thing one added
+ Thing two added
- Thing one removed
- Thing two removed
- Thing three removed
The user can add or remove up to 30 items. The user is not required to add or remove anything. You may also assume that the ingredients are one word (and thus do not contain spaces).
You must implement the function int getItems(string arr[], size_t len). This function should NOT print anything to the console. This function stores the user's input until the user enters "quit". Since arrays are passed by reference, the array will be modified by the function and will remain modified when the function returns. It should return the number of items the user entered. Most of your code should go in void generateReceipt. This is essentially a main function and will contain the majority of the program logic.
Example Output
Here is an example of what your program's output should look like. It is vitally important that your program takes input in the same order as shown here. User input is in bold.
-----------------------------------------------------------------------
This program generates a kitchen receipt specifying additions and removals for a dish.
-----------------------------------------------------------------------
What is the main dish? Pasta
Anything you'd like to add? Enter 'quit' to stop
Cheese
meatballs
quit
Anything you'd like to remove? Enter 'quit' to stop
sauce
quit
Pasta
+ Cheese
+ meatballs
- sauce
codecheck: http://codecheck.it/files/1908192145b5h7kgmab4ukcjgxpfexas6ug