Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

create an application to store entres served at a cafeteria during the work week. (1) Create an array of String objects and populate it with

create an application to store entres served at a cafeteria during the work week.

(1) Create an array of String objects and populate it with the days of the work week (i.e., Monday - Friday)

(2) Create an array parallel to the one created in (1) to store the entres. However, you do not have this information, so you will need to write a loop that prompts the user to enter the entre served on that day. This prompt should include the day for which you are asking for the information (e.g., "What entre 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 entre for which you are asking for the price

(4) Prompt the user for an entre and search the array and output the day on which the entre will be served

5) Search through the array for the highest price entre and output the name of this entre for the user

in java

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students explore these related Databases questions