In C language, Menu allow the user to:
1. sort the data by name (using qsort function),
2. sort the data by calories (using qsort function),
3. add information for a pizza,
4. modify pizza information,
5. delete information for a pizza,
6. save pizza information to new file
7. Exit.
- Create functions for each of the menu options.
- Use functions, arrays, pointers, strings, structures, and files in your program.
Original data file:
Stuffed|5-Meat|Red|Canadian Bacon, Pepperoni, Sausage, Bacon, Ground Beef|460|490
Gourmet|Angus Steak & Roasted Garlic|Creamy Garlic|Angus Steak, Roasted Garlic, Mushrooms, Green Onions, Parmesan|330|370
Stuffed|Chicago-Style|Red|Salami, Pepperoni, Sausage, Ground Beef, Mixed Onions, Tomatoes, Green Onions|450|490
Stuffed|Chicken Bacon|Creamy Garlic|Chicken, Bacon, Tomatoes, Mixed Onions|450|480
Gourmet|Chicken Bacon Artichoke|Creamy Garlic|Chicken, Bacon, Artichoke Hearts, Spinach, Parmesan, Zesty Herbs|350|400
Signature|Chicken Garlic|Creamy Garlic|Chicken, Tomatoes, Green Onions, Herbs & Cheese|340|380
Signature|Cowboy|Red|Pepperoni, Sausage, Mushrooms, Black Olives, Herbs & Cheese|370|410
Signature|Garden Veggie|Red|Mushrooms, Black Olives, Mixed Onions, Green Peppers, Tomatoes|270|310
Gourmet|Gourmet Vegetarian|Creamy Garlic|Spinach, Zucchini, Mushrooms, Artichoke Hearts, Tomatoes, Mixed Onions, Herbs & Cheese|320|360
Gourmet|Herb Chicken Mediterranean|Olive Oil & Garlic|Herb Chicken, Spinach, Sun-dried Tomatoes, Feta, Zesty Herbs|330|380
Signature|Murphy's Combo|Red|Salami, Pepperoni, Sausage, Mushrooms, Mixed Onions, Black Olives|350|400
Signature|Papa's All Meat|Red|Canadian Bacon, Salami, Pepperoni, Sausage, Ground Beef|350|400
Signature|Papa's Favorite|Red|Pepperoni, Sausage, Ground Beef, Mushrooms, Mixed Onions, Green Peppers, Black Olives|350|400
Gourmet|Spicy Fennel Sausage|Creamy Garlic|Spicy Fennel Sausage, Sun-dried Tomatoes, Mushrooms, Spinach, Parmesan|350|410
- allow user to choose from 1-7, then if its 1- sort the data file that I have attached by name , 2 -sort data file by calories( all the data of file) and from 3-6, user will add an pizza name(a whole line), delete one from one line from data, modify means change a pizza info from original data file. After all of that, user will save those all changes to new file. and 7 is exit. Also, ask at the end that do you want to continue (Y/N)? Y- show all options again. N- stop. Please help me with this project.