(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”.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 8E: For each of the following exercises, you may choose to write a console-based or GUI application, or...
icon
Related questions
Question

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

Here's a sample run of the application. User input in bold. (NOTE: This example is for only a 5 day week, but yours will be
a 7 day week and include 7 entrees).
-1-
What entree is being served on Monday?
Catfish
What entree is being served on Tuesday?
Tacos
What entree is being served on Wednesday?
Lasagna P
What entree is being served on Thursday?
Fried Chicken P
What entree is being served on Friday?
Pizza
What is the price for Catfish?
3.87 e
What is the price for Tacos?
2.15
What is the price for Lasagna?
6.99 e
What is the price for Fried Chicken?
4.99
What is the price for Pizza?
2.50
Enter an entree to search for:
Fried Chicken P
Fried Chicken is served on Thursday.
The highest price entree is Lasagna.
Transcribed Image Text:Here's a sample run of the application. User input in bold. (NOTE: This example is for only a 5 day week, but yours will be a 7 day week and include 7 entrees). -1- What entree is being served on Monday? Catfish What entree is being served on Tuesday? Tacos What entree is being served on Wednesday? Lasagna P What entree is being served on Thursday? Fried Chicken P What entree is being served on Friday? Pizza What is the price for Catfish? 3.87 e What is the price for Tacos? 2.15 What is the price for Lasagna? 6.99 e What is the price for Fried Chicken? 4.99 What is the price for Pizza? 2.50 Enter an entree to search for: Fried Chicken P Fried Chicken is served on Thursday. The highest price entree is Lasagna.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT