Question: Please solve this question using Java . Do not copy online solutions and explain your code and explain how did you solve, how would you

Please solve this question using Java. Do not copy online solutions and explain your code and explain how did you solve, how would you do better given more time.

Kitchen View

A restaurant ordering system accepts food orders one item at a time. Each item entered is for a specific person sitting at a particular table. The kitchen is not concerned with which person ordered which item. They just need to know what menu items have been ordered for each table. Write a program that will read a list of individual orders and "pivot" that set into a display of food items for each table in the diner. The total number of each item per table will be displayed on a column for that food item. For example, the orders: Sarah,7,Green Salad Sarah,7,Cappuccino Michael,2,Club Sandwich Marcus,5,Sparkling Water

Would be displayed for the kitchen as: Table,Cappuccino,Club Sandwich,Green Salad,Sparkling Water 2,0,1,0,0 5,0,0,0,1 7,1,0,1,0

Note that the menu items are listed in alphabetical order across the overall list. Input: A comma-delimited list of names, table numbers, and menu items. Output: A comma-delimited list of table numbers and item counts with a header row as the first line. The first column name is "Table".

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 Databases Questions!