Alpha|alpha|ALPHA) echo “$letter is the first letter in the Greek alphabet”;;

Beta|beta|BETA) echo “$letter is the second letter in the Greek alphabet”;;

Gamma|GAMMA|gamma) echo “$letter is the third letter in the Greek alphabet”;;

OMEGA|omega|Omega) echo “$letter is the last letter in the Greek alphabet”;;

*) echo “$letter is not a letter in the Greek alphabet”;;

esac

Explain what the pipe symbol is doing in the above program.

8. Write your own case statement where the user can type the name of a Car Maker, and your program will give a response determined by you. For example:

Question: What Car Maker are you interested in?

User Response: Ford

Program Response: Ford is a good car

Do this for 4 different car makers. Also remember to include a catchall in case the user types in a car maker that does not exist.

9. Using your knowledge of the while loop, take the program from #5, and nest that case statement inside a while loop, so the case statement will keep on running until q is typed. I left spaces below where the parts of the while loop, and the interactivity between the user and the program would go (ex. asking the user to enter a new choice, and allowing for it).

Line 1: # Use a counter

line 2: clear

line 3: “Use one of the following options:”

line 4: echo “d To display the time and date”

line 5: echo “p To see what directory you are currently in”

line 6: echo “w To see a list of who is online”

line 6: echo “ Enter your option and hit Enter: c”

line 7: read option

line 8:

line 9:

line 10: case $option in

line 11: d) echo `date`;;

line 12: p) echo `pwd`;;

line 13: w) echo `who`;;

line 14: *) echo “That was not a valid selection”;;

line 15: esac

line 16:

line 17:

line 19:

line 20: echo “Good Bye”

10. Using the car maker script from number 8, add a while or an until to make it run over and over until the user types Q.

Unlike most other websites we deliver what we promise;

Our Support Staff are online 24/7

Our Writers are available 24/7

Most Urgent order is delivered with 6 Hrs

100% Original Assignment Plagiarism report can be sent to you upon request.

GET 15 % DISCOUNT TODAY use the discount code PAPER15 at the order form.

Type of paper

Academic level

Subject area

Number of pages

Paper urgency

Cost per page:

Total:

Customer Section

Client Feedback

No complains, the paper was flawless and of great quality, the writer processed it to prefections beyond my expectation am very pleased.
- Marga

Thank you for your expert writers. The paper was technical and I was unsure that the writer would deliver any positive grades. But now my grades have mushroomed from C to straight A’s, you guys are excellent. You guys are doing a great job, Thumbs up!
- Howard