Question: Bash: Assignment-1 (do one of the questions from below) Que 1 for 2%: Create autotest-scripts using bash. Consider a directory named Class containing the work
Bash: Assignment-1 (do one of the questions from below)
Que 1 for 2%: Create autotest-scripts using bash. Consider a directory named "Class" containing the work of "N" students in sub-directories named "students first and last names and student ID".
Each sub-directory contains shell scripts named lab_1, lab_2, lab_3, lab_4, and so on.
Execution of each lab script may or may not need user input, and will result in some output that we are looking to compare with the expected output. The auto-tester should use at least 3 test cases to test the correctness of each script to determine the score of a student.
A test case will have 3 fields (an input (if needed), Expected output, and the Result of the test). The result will be an average score for that lab based on the given rubric and 3 test cases.
Rubric: 100% for a correct output; 50% for a partially correct work (that is not a 100% correct output but a program getting executed without errors); 25% for attempting, and the code runs into a syntax error or times out due to an infinite loop. And 0% if a lab file is not found. The examiner should be given the option to halt the script and inspect a lab file, and then return to continue with auto-testing.
The script should output the scores obtained for each lab in a file, that records the scores beside the student's first name, last name, and student ID.
==============================================================
Que 2 for 1%: Calculate grades for students
Create a shell script that accepts a .csv file as an input containing the student's first name, last name, student ID, and a score (example out of 100). Refer to the York University grading scale, and calculate the grade for each student based on their score. Output the grade scored to the same file that contained input. The grade obtained will be stored as the 5th column in the file. Please note that all the borderline cases should be highlighted in the output file.
For example, if a score>90 gets an 'A+', then a borderline case will be a score of 90. Similarly, if 91>score>85 gets an 'A', then a borderline case will be a score of 85.
==============================================================
Deliverables in both the questions (choose one from above 2):
1. A well-documented shell script
2. Demonstration of work during OH (Monday, LAS 1003C) - by an appointment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
