Home /
Expert Answers /
Computer Science /
java-help-please-java-help-please-9-9-lab-parsing-food-data-given-a-text-file-containing-t-pa438
(Solved): JAVA __ Help Please!!
JAVA --Help Please
9.9 LAB: Parsing food data Given a text file containing t ...
JAVA __ Help Please!!
JAVA --Help Please
9.9 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 arrays, 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. Ex: If the input of the program is: food.txt and the contents of food.txt are: 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 (Drinks) -- \( 160 \mathrm{z} \) bottled water Beef tacos (Mexican food) -- Ground beef in freshly made tortillas
LabProgram.java Load default template...