Question: IN JAVA CODE You are the new manager of a small deli with a limited menu. You want a system to tell you the price
IN JAVA CODE
You are the new manager of a small deli with a limited menu. You want a system to tell you the price of each item at the point of sale. Create a 10 element String array of food items. Create a 10 element int array of food prices (corresponding to the items entered in the other array). Prompt the user to enter 5 elements in each array. Then sort the arrays in alphabetic order based on item name. Keep the prices matched with the proper food item. You can modify the bubble sort code I showed you earlier. Now prompt the user for which food item is being sold. Print out the sorted list of food items as part of the prompt. The user will enter one, and you will print the correct price.
Name your class program3a.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
