about | help | code help+videos | done | prefs |
processScoresWithAbsent
Now process a list with integer test scores that may be "A" for absent. Drop the lowest and highest grades. If there is at least one "A" present, drop that instead of the lowest grade. If there are two "A" present, drop one instead of the lowest grade and also remove the other before dropping the highest and calculating the average.
processScoresWithAbsent([71, 81, 'A']) → [71, 71.0] processScoresWithAbsent([84, 'A', 98, 82]) → [84, 82, 83.0] processScoresWithAbsent([84, 'A', 'A', 82]) → [82, 82.0] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy