Given a text file food.txt containing the availability of food items. Write a program that reads the information from the text file and outputs the available food items. Add comments to better understand it txt.file content ========== Sandwiches Ham sandwich Classic ham sandwich Available Sandwiches Chicken salad sandwich Chicken salad sandwich Available Sandwiches Cheeseburger Classic cheeseburger Not available Salads Asian salad Mixed greens with ginger dressing, sprinkled with sesame Not available Beverages Water 16oz bottled water Available Vegetarian Avocado sandwich Sliced avocado with fruity spread Not available Mexican food Beef tacos Ground beef in freshly made tortillas Available Mexican food Chicken tacos Grilled chicken breast in freshly made tortillas Not available Beverages Coca-Cola 16oz Coca-Cola Available
Given a text file food.txt containing the availability of food items. Write a
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images