SUGGESTED PROJECTS Automatic grading The new instructor of OMIS i...

  1. Home
  2. Homework Library
  3. Computer Science
  4. Linux
  5. SUGGESTED PROJECTS Automatic grading The new instructor of OMIS i...


Automatic grading
The new instructor of OMIS is particularly lazy and wants a bash application that grades a given homework automatically. Given the class roster, the students’ submissions, and the solution to the homework, the application should grade students based on whether the output of their commands is identical to the output obtained by the solution.
For example, suppose that a certain assignment asks to find the directory that were modified on Feb 21. The instructor provides the following solution:
ls -l | grep -E "Feb 21"
Students will get full grade as long as their command obtains the same output as the solution.
So, for example, the following submissions will both obtain full marks (1.0 / 1.0).
ls -l | grep -E "Feb 21"
ls -l | awk '{if ($6 == "Feb" && $7 == 21) print $0}'

If a solution does not obtain the same output as the solution, then the mark is 0. (0.0 / 1.0).
In this system, students do NOT submit their homework through Camino. Instead, they place their code in a predefined location in their personal directory.
Where exactly should the students place their submissions? How should they name them? Where should the instructor place the solution? Where should grades be written? You decide. It is yourjob to design a system that is correct, effective, and simple to use. During your presentation, you should convince me to “buy” your system.
If you correctly implement the system described above you will get 40 points (out of 70 total points given for the implemented functionalities, see first page).
Additional features to obtain more points:

• Update master table of grades (up to 15 additional points): Instead of writing the grades of the current homework in a new file, add a column to an existing table which contains the grades of the past homework (one row per student, one column per past homework)
• Partial grades (up to 15 additional points): Instead of giving only 0 or 1, the instructor would like to give partial credit to those submissions that are partly correct. You might want to investigate the command diff.
• Feel free to implement more features that you might find useful. I’ll give them points according to how useful they are and how hard it is to implement them.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.


# Checking if solution script is passed or not, it will check students solution
# with the same name.
if [ $# -eq 0 ]
    echo "No solution is passed, e.g. ./"
    exit 1

# Assignment which needs to be tested

# File name to store the grade in student directory

By purchasing this solution you'll be able to access the following files:

for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Linux Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats