Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / a script called survey

a script called survey

Computer Science

a script called survey.sh that can simulate an interactive survey environment. The survey script will need to do the following: 1) Take an argument that contains the subject of your survey. For example, if your survey is about math, you should expect that it is called from the command line in the following manner:

./survey.sh math

 

 

2) The script should ask the user for their first name and last name during execution

3) Go to the subdirectory /subject/ and load five questions (one at a time), and allow the user to enter an answer to the standard input.

 

 

ex. If the survey is about science, then the script should go to subdirectory /science

 

Note1: You can assume that the /subject subdirectory exists before your script runs for the first time. This means that your script is NOT responsible for creating the subject directory.

 

Note2: You will have to create the questions in the subject folder manually before running the script for the first time. Do not create questions in your survey.sh script.

4) The student's answer should be recorded in a file called: lastname_firstname_answers_subject.txt where subject is the name from the argument in step 1).ex. babalis_alex_answers_math.txt or babalis_alex_answers_science.txt

5) Load the next question for the subject, and repeat step 4) until the five questions are done.

6) summary file that indicates how many words the user entered during the survey, how long it took them complete each question, and how long it took them to complete the entire survey.Note3: Zip the entire folder, and then submit. Do not send individual files

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions