Page 1 of 1

3. Write a perl script (getAverage.pl), which reads data from scores.txt (see attached file) and will recognize the foll

Posted: Sun Jul 10, 2022 11:27 am
by answerhappygod
3. Write a perl script (getAverage.pl), which reads data fromscores.txt (see attached file) and will recognize the followingthree options to compute the average score over the entire classfor a particular lab, exam, or the final, respectively.
-l number
-e number
-f
In case of an invalid lab or exm number, the script will displaythe available options and then exit.
The format of data is:
ID:Name: Lab1:Lab2:Lab3:Lab4:Lab5:Lab6:Exm1:Exm2:FinalGrade