Programming Assignment: Pizza Box
This program will read a typical menu from a pizza store that contains an item name and an associated price. There will only be 20 items to keep things simple.
Section 1: Read Menu Items into an array of structure elements
1. Add code to main that opens and reads all data from this input file. This file contains 20 items and two fields per line: item and price. The item will be 30 characters or less.
2. To hold the items present tin menu.txt you will need to create a structure called menu_items. This structure will have 2 items it and must be declared to be an array.
3. You should declare an integer constant called NUM_MENU_ITEMS that you initialize to 20. I do not want to see 20 hard-coded anywhere. You must use your global constant instead.
4. To receive complete credit your program should use the fail method to ensure that the input file can be opened it should return a meaningful error message if it cannot.
Here is the menu.txt stuff that was given as well:
ChickenFingers 6.75
BuffaloChickenFinger 6.95
FrenchFries 3.05
CheeseFries 4.10
BeachFries 3.60
GardenSaladSmall 3.95
GardenSaladLarge 5.50
GreekSaladSmall 6.00
GreekSaladLarge 7.75
CaesarSmall 4.75
CeasarLarge 8.25
BuffaloWings6 8.50
BuffaloWings12 16.75
BuffaloWings24 31.40
PlainSteak 6.85
CheeseSteak 7.35
PlainPizzaSmall 6.75
PlainPizzaMedium 9.95
PlainPizzaLarge 13.25
Stromboli 9.10