Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Pseudocode Below is a pseudo-code to help you write the program. AWK Programming language please, need correct answers to this question. BEGIN set FS

The Pseudocode Below is a pseudo-code to help you write the program. AWK Programming language please, need correct answers to this question.

image text in transcribed

BEGIN set FS to a comma print the header if (NR > 1) # this test skips the first line of the file Set individualTotal and individualCount to zero for (field-3; field = 0) { add contents of Sfield to individualTotal add one to individualCount # Now update the test-Total and testCount arrays # subtract 2 from the field number so that our arrays begin at 1 add contents of Sfield to testTotal indexed by (field-2) add I to testCount array indexed by (field-2) # Use contents field 2 as the index for the team array add contents of Sfield to teamTotal array indexed by $2 add 1 to teamCount array indexed by S2 print the person's name and his individual average END print for (n=1 ; n 1) # this test skips the first line of the file Set individualTotal and individualCount to zero for (field-3; field = 0) { add contents of Sfield to individualTotal add one to individualCount # Now update the test-Total and testCount arrays # subtract 2 from the field number so that our arrays begin at 1 add contents of Sfield to testTotal indexed by (field-2) add I to testCount array indexed by (field-2) # Use contents field 2 as the index for the team array add contents of Sfield to teamTotal array indexed by $2 add 1 to teamCount array indexed by S2 print the person's name and his individual average END print for (n=1 ; n

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 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

How should we organize the data?

Answered: 1 week ago

Question

8. Satyam Computer Services Limited

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago