Question: Using the chores.csv file from the previous question; write an awk script to return the average number of minutes required to complete a chore. Your

 Using the chores.csv file from the previous question; write an awk

script to return the average number of minutes required to complete a

Using the chores.csv file from the previous question; write an awk script to return the average number of minutes required to complete a chore. Your solution must handle an undefined number of chores. zero points will be given to solutions that use a static number in their calculation. Format floating point numbers to 2 decimal places. Example output; Average: 32.14 The data file provided contains an action, followed by a variable number of integers. Write an awk script that will start with a sum of 0 and then perform the action specified on each row before returning the sum of all lines. You may accomplish this using pattern matching, or conditionals. intructs.csv ADD,1,3,5,8,10,11,54 SUB ,1,2,3,4 ADD, 15,18,21,42,37 ADD,1,1,1,0,0,3,16 ADD, 4,1,8,0,4,6,13,16,17,20,8,6,4 SUB , 13,8 Editor HTML Using the chores.csv file from the previous question; write an awk script to return the average number of minutes required to complete a chore. Your solution must handle an undefined number of chores. zero points will be given to solutions that use a static number in their calculation. Format floating point numbers to 2 decimal places. Example output; Average: 32.14 The data file provided contains an action, followed by a variable number of integers. Write an awk script that will start with a sum of 0 and then perform the action specified on each row before returning the sum of all lines. You may accomplish this using pattern matching, or conditionals. intructs.csv ADD,1,3,5,8,10,11,54 SUB ,1,2,3,4 ADD, 15,18,21,42,37 ADD,1,1,1,0,0,3,16 ADD, 4,1,8,0,4,6,13,16,17,20,8,6,4 SUB , 13,8 Editor HTML

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!