Question: Write a python on below requirenment 12.11 LAB: Parsing food data Given a text file containing the availability of food items, write a program that

Write a  python on below requirenment

Screen Shot 2022-12-16 at 2.49.50 PM.png 

12.11 LAB: Parsing food data Given a text file containing the availability of food items, write a program that reads the information from the text file and outputs the available food items. The program first reads the name of the text file from the user. The program then reads the text file, stores the information into four separate lists, and outputs the available food items in the following format: name (category) - description Assume the text file contains the category, name, description, and availability of at least one food item, separated by a tab character ('\t'). Ex: If the input of the program is: food.txt and the contents of food.txt are: Sandwiches Sandwiches Sandwiches Salads Available Available Chicken salad sandwich Chicken salad sandwich Not available Ham sandwich Cheeseburger Classic ham sandwich Classic cheeseburger Not available. Caesar salad Chunks of romaine heart lettuce dressed with lemon juice. Salads Asian salad Mixed greens with ginger dressing, sprinkled with sesame Not available Beverages Beverages Water 16oz bottled water Available Coca-Cola 16oz Coca-Cola Not available Mexican food available Mexican food Vegetarian Chicken tacos Grilled chicken breast in freshly made tortillas Available Beef tacos Ground beef in freshly made tortillas Avocado sandwich Sliced avocado with fruity spread Not available the output of the program is: Ham sandwich (Sandwiches) Classic ham sandwich Caesar salad (Salads) -- Chunks of romaine heart lettuce dressed with lemon juice Water (Beverages) 16oz bottled water Beef tacos (Mexican food) -- Ground beef in freshly made tortillas 429212.2783460.qx3zqy7 LAB ACTIVITY 12.11.1: LAB: Parsing food data Downloadable files food.txt Download 2/10 Not main.py Load default template... 1 # Type your code here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!