Question: Given a text file containing the availability of food items, write a program available food items. The program first reads the name of the text
Given a text file containing the availability of food items, write a program available food items. The program first reads the name of the text file fro information into four separate arrays, and outputs the available food item Assume the text file contains the category, name, description, and availat Ex: If the input of the program is:
food.txt
and the contents of food.txt are:
Sandwiches Ham sandwich Classic ham sandwich
Sandwiches Chicken salad sandwich Chicken salad
Sandwiches Cheeseburger Classic cheeseburger
Salads Caesar salad Chunks of romaine heart le
Salads Asian salad Mixed greens with ginger dress
Drinks Water bottled water Available
Drinks CocaCola loz CocaCola Not available
Mexican food Chicken tacos Grilled chicken brea
available
Mexican food Beef tacos Ground beef in freshly In java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
