Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

a script called survey

Computer Science Nov 09, 2020

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

Expert Solution

For detailed step-by-step solution, place custom order now.
Need this Answer?

This solution is not in the archive yet. Hire an expert to solve it for you.

Get a Quote
Secure Payment