Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Bash Script problem, I am new to this, please help me... Submit two separate bas

ID: 3887587 • Letter: B

Question

Bash Script problem, I am new to this, please help me...

Submit two separate bash shell scripts that 1. Reads the following data file, 2. Calculates the average of the scores for each record 3. Sorts the output by last name then first name 4. Formats the output as shown below. The objective of writing two scripts is to see that there are multiple correct solutions to such problems. One solution should use the awk tool, and the other should use bash commands (bash scripting) Write a program that reads in a data file (get filename from command line arguments) and prints out the average for each person, as shown in the "report" below based on the example data file below Note: we wll accept both rounded and truncated averages. Report: 123456789 Lee Johnson 72 85 90 999999999 Jaime Smith 90 92 91 888111818 JC Forney 100 81 97 290010111 Terry Lee 100 99 100 199144454 Tracey Camp 77 84 84 299226663 Laney Camp 70 74 71 434401929 Skyler Camp 78 81 82 928441032 Jess Forester 85 80 82 928441032 Chris Forester 97 94 89 An example data file is shown below:

Explanation / Answer

grades.sh

=====================================================================

grades-awk.sh

=================================================================================