Question: Please use Linux/Unix command for this question, Thank you. Q3 Counting ranked votes 10 Points A committee recently did a ranked vote to select an

 Please use Linux/Unix command for this question, Thank you. Q3 Counting

Please use Linux/Unix command for this question, Thank you.

Q3 Counting ranked votes 10 Points A committee recently did a ranked vote to select an award recipient. Each member was asked to order nominees A-E, placing the most preferred nominee first. Here is an example vote, of 9 members, voting for 5 candidates. You may assume there are always 5 candidates. D A EBC DE ABC A C BED D BEAC EDABC DA ECB A E CBD E ABCD Write a script, using any of the tools covered so far, to compute the most preferred candidate, using the following weighting mechanism. For each committee member (row), award the 1st ranked candidate 5 points, 2nd rank: 4 points, 3rd: 3 pts, 4th: 2 pts, 5th: 1 point. For each candidate, report the sum of points, listing candidates in total point order, highest to lowest. The for example, the output may look like: 25 D 23 A 18 B 7c 4 E Enter your answer here Q3 Counting ranked votes 10 Points A committee recently did a ranked vote to select an award recipient. Each member was asked to order nominees A-E, placing the most preferred nominee first. Here is an example vote, of 9 members, voting for 5 candidates. You may assume there are always 5 candidates. D A EBC DE ABC A C BED D BEAC EDABC DA ECB A E CBD E ABCD Write a script, using any of the tools covered so far, to compute the most preferred candidate, using the following weighting mechanism. For each committee member (row), award the 1st ranked candidate 5 points, 2nd rank: 4 points, 3rd: 3 pts, 4th: 2 pts, 5th: 1 point. For each candidate, report the sum of points, listing candidates in total point order, highest to lowest. The for example, the output may look like: 25 D 23 A 18 B 7c 4 E Enter your answer here

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!