Question: rangeVoting ( values , tieBreak ) - > int The function should input a worksheet corresponding to an xlsx file, see Task 1 for the
rangeVoting values tieBreak int The function should input a worksheet corresponding to an xlsx file, see Task for the details. an option for the tiebreaking among possible winners see section "TieBreaking" below The function should return the alternative that has the maximum sum of valuations, ie the maximum sum of numerical values in the xlsx file, using the tiebreaking option to distinguish between possible winners. Tiebreaking: For the tieBreak input of these functions, the possible options are the following: tieBreak "max". In that case the max tiebreaking rule should be applied see above tieBreak "min". In that case the min tiebreaking rule should be applied see above tieBreak is an integer between and n: In that case the agent i rule should be applied, with i being the inputted integer see above The function should include error handling in case the inputted integer does not correspond to an agent
python code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
