Question: BASH Please ! I need help 1. Use loops: Write a bash script to produce the output using a step-value-loop: (20%) 1, 5, 9, 13,

BASH Please ! I need help
1. Use loops: Write a bash script to produce the output using a step-value-loop: (20%) 1, 5, 9, 13, 17, 21, 25 Your output must print the numbers horizontally (1 first and 25 last), comma separated as shown above. Hints: Look at the examples bash_sec_7.0_declaring_variables_03.sh (for precision printing) and bash_sec_09_example_7.sh as a guideline. You MUST use a step-value-loop as in the example. Other methods will get only partial credit. (YOU MUST INCLUDE THE SCRIPT FILE (.sh file) IN THE ZIP) 2. Write a bash script to tell a student, what language courses he/she is eligible to take based on his/her First Language. Limit the languages only to English, Spanish, Chinese, Italian, Hindi. Ask the user to enter his/her First Language. If any one of the above languages is entered as the first language, the student is eligible to take any two of the remaining four. If the user enters anything not listed in the 5 languages above, print an error message. Here are few scenarios. (40%) Run 1...... Developer: Print Your Name Here Put your name here See what language courses you may take Enter student's First Language (Enter English, Spanish, Chinese, Italian, Hindi): English Your First Language: English You may take any two of the following courses Spanish English was entered, so the Chinese Italian student is eligible to take any of the other 4 languages Run 2...... Developer: Print Your Name Here See what language courses you may take Enter student's First Language (Enter English, Spanish, Chinese, Italian, Hindi): Italian Your First Language: Italian You may take any two of the following courses English Italian was entered, so the Spanish student is eligible to take any Hindi of the other 4 languages Hindi ====== Chinese Run 3...... Developer: Print Your Name Here See what language courses you may take Enter student's First Language(Enter English, Spanish, Chinese, Italian, Hindi): Russian Please enter a valid language. If an incorrect language is 1 entered, print an error message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
