(1) Create an array of String objects and populate it with the days of the week (7 days)(i.e., Monday - Sunday) (2) Create an array parallel to the one created in (1) to store the entrées. However, you do not have this information, so you will need to write a loop that prompts the user to enter the entrée served on that day. This prompt should include the day for which you are asking for the information (e.g., "What entrée is being served on Monday?") (3) Create another parallel array that stores the prices. You will also need to collect this information from the user. This time, your prompt should include the name of the entrée for which you are asking for the price (4) Prompt the user to choose an entrée from a list that you display numbered 1 through 7 (have them input a number 1 to 7) and search the array and output the day on which the entrée will be served (5) Search through the array for the highest price entrée and output the name of this entrée for the user including the text something like “The highest priced entrée is Salmon”.
Create in Java
(1) Create an array of String objects and populate it with the days of the week (7 days)(i.e., Monday - Sunday)
(2) Create an array parallel to the one created in (1) to store the entrées. However, you do not have this information, so
you will need to write a loop that prompts the user to enter the entrée served on that day. This prompt should
include the day for which you are asking for the information (e.g., "What entrée is being served on Monday?")
(3) Create another parallel array that stores the prices. You will also need to collect this information from the user. This
time, your prompt should include the name of the entrée for which you are asking for the price
(4) Prompt the user to choose an entrée from a list that you display numbered 1 through 7 (have them input a number
1 to 7) and search the array and output the day on which the entrée will be served
(5) Search through the array for the highest price entrée and output the name of this entrée for the user including the
text something like “The highest priced entrée is Salmon”.
See attached example of the output
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images