Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with a Linux/UNIX question regarding PERL scripting please: Redo activity 6.2-5 (shown below, called score) using the while-loop with the diamond operator, the

Need help with a Linux/UNIX question regarding PERL scripting please:

Redo activity 6.2-5 (shown below, called "score") using the while-loop with the diamond operator, the split function on a space character, and the $_ variable. Assuming the file score is specified as argument.

$ cat score

pchen72 50 71 55 93 115

jmaszk 45 76 49 88 102

bvbui 59 78 53 96 145

mtcrowle 33 65 39 82 100

mrchave3 54 77 56 98 158

Write a perl script called activity6.2-9.pl that computes the final percentage score for each student, as well as the class average

The max score is 450 and must be set as constant.

The output should be (round the score to nearest integer):

Total number of records: 5 Final score for pchen72 = 85% Final score for jmaszk = 80% ...

Class Average = 86%

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_2

Step: 3

blur-text-image_3

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago