Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 ( 4 0 points ) Generate a report containing the lowest, highest and average score for each assignment in the data file. The

Task 1(40 points)
Generate a report containing the lowest, highest and average score for each assignment in the data file. The name of the assignment is located in column 3. Your report should be in a tabular format as shown in the sample below;
Name Low High Average
Q06779586.80
L05409646.60
WS 555
Q075810078.80
L06609961
L07778664.80
H01199047.80
H02479574.60
H03709582.20
H04468065
H05549576.60
H06589780.60
Q012510074.80
H07529067
Q028410091.60
L01419175
Q033310066.80
L02010061.40
Q045510081
L038810095.80
FINAL 589985.60
Q05549976.80
L044810079.20
Your solution must generate the report using the data file given (Lab03-data.csv Download Lab03-data.csv). No points will be awarded for solutions that copy-paste the above sample data and use awk to print it to the console. Provide the command used to run your script against the lab03 data file along with your completed awk script.
Task 2(50 points)
Calculate the weighted grade for each student that appears in the data file. You may calculate the grade based on total earned points, divided by total possible points.
Output a list of students, their grade as a percentage and a letter grade. For simplicity; use this letter grade scale;
A =90>= grade <=100
B =80>= grade <90
C =70>= grade <80
D =60>= grade <70
E = grade <60
The following sample output has been provided as a guide. Your solution must be based on the data in the Lab03-data.csv Download Lab03-data.csvfile. No points will be awarded to solutions that are based on copy-pasting the sample output and printing it with awk.
Name Percent Letter
Andrew 75.21 C
Chelsey 92.21 A
Shane 77.64 C
Ava 79.76 C
Sam 62.34 D
Submit your completed script and the awk command needed to run it.
Task 3(10 points)
Select either Task 1 or Task 2 and write a Bash shell script that takes a file name as an argument. The Bash shell script then uses that file name to run your awk script and sort the results alphabetically, either by assignment name (Task 1) or student name (Task 2). Remember to account for the headers in these outputs. Please don't forget to do this part, and make sure you use a Bash script!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 22nd International Conference Dexa 2011 Toulouse France August/September 2011 Proceedings Part 1 Lncs 6860

Authors: Abdelkader Hameurlain ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2011th Edition

3642230873, 978-3642230875

More Books

Students also viewed these Databases questions