Question: To do this assignment use awk or. gawk 2 G Lab 11. For this lab write an awk program that takes as an input the

 To do this assignment use awk or. gawk 2 G Lab
To do this assignment use
awk or. gawk

2 G Lab 11. For this lab write an awk program that takes as an input the file that I distributed to you and which is attached to this description, namely the example salary data fle file. The example salary data file consists around 150 records, each record having three fields: name, salary per hour, and hours worked fields 1, 2, and 3, respectively. Write awk program that: Comprises BEGIN, main (pattern/action), and END segments In the BEGIN segment Print a header information (whatever you wish) Assign oFs (output Field separator) to be colon surrounded by spaces (i.e In the main block/segment Print names and salaries of those employees that earned more than $500.00 (i.e., $2 $3 500) In the END segment Compute and print a number of all employees and the total amount paid to them (e.g., sum of $2 $3 for each employee)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!