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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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).*

---

**What entree is being served on Monday?**  
Catfish

**What entree is being served on Tuesday?**  
Tacos

**What entree is being served on Wednesday?**  
Lasagna

**What entree is being served on Thursday?**  
Fried Chicken

**What entree is being served on Friday?**  
Pizza

**What is the price for Catfish?**  
3.87

**What is the price for Tacos?**  
2.15

**What is the price for Lasagna?**  
6.99

**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

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).* --- **What entree is being served on Monday?** Catfish **What entree is being served on Tuesday?** Tacos **What entree is being served on Wednesday?** Lasagna **What entree is being served on Thursday?** Fried Chicken **What entree is being served on Friday?** Pizza **What is the price for Catfish?** 3.87 **What is the price for Tacos?** 2.15 **What is the price for Lasagna?** 6.99 **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 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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education