Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 0 7 ( 4 0 points ) Write an awk script that will take the following input file and display: The total number of
Task points
Write an awk script that will take the following input file and display:
The total number of votes add all votes
The average number of votes add all votes and divide by the number of breeds
The breeds with more than the average number of votes highest to lowest
The breeds with less than the average number of votes lowest to highest
Check the example output carefully, we expect your output to match it EXACTLY.
tableInput file labdcsvExample outputBreed Votes,Total votes: Black Lab, Average votes: ChihuahuaPugMost popular:CorgiCorgiShar Pei, Black LabShih Tzu, Shar PeiMalteseLeast popular:PugChihuahuaShih TzuMaltese
Note: Your output value for average votes can be an integer or a floating point number with a precision of one or two decimal places to the right.Task points
Write an awk script that will take the following input file and output the least popular dog breed based on the number of votes. Check the example output carefully, we expect your output to match it EXACTLY.
tableInput file labdcsvExample outputBreed Votes,The Pug is sad because it only got Black Lab, votesChihuahuaPugCorgiShar Pei, Shih Tzu, Maltese
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started