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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply