Question: Scripting Language sygwin64 bash PLEASE DO NOT PUT CODE IN JAVA THIS IS BASH SCRIPT 3. Write a bash script (It must be a script

Scripting Language sygwin64 bash

PLEASE DO NOT PUT CODE IN JAVA THIS IS BASH SCRIPT

3. Write a bash script (It must be a script file and not command line output) to create a nested if statement to name the food Mr. Smith is supposed eat in a given day.

a. First your script prompt for: Mr. Smith's food eating schedule...

Enter Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday:

(User enters any of the days from the list above)

b. Based on the input value, the food Mr. Smith eats is displayed as below:

Mr. Smith's food eating schedule...

Enter Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday: Tuesday

On Tuesday you must eat Fruit

Note: If the user enters a unknown day, print a undefined as follows:

Mr. Smith's food eating schedule...

Enter Sunday, Monday, Tuesday, Wednesday, Thursday, Friday or Saturday: nomday

On nomday you must eat undefined

Data: Here is Mr. Smiths food schedule:

Sunday = Bread

Monday = Salad

Tuesday = Fruit

Wednesday = Pizza

Thursday = Pasta

Friday = Rice

Saturday = Fajita

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!