about | help | code help+videos | done | prefs |
Write a method that returns the increase in your average climbing scores from when you started to when you finished. The grades of your climbs when you started will be in 'vGradesStart' and the grades when you finish are in 'vGradesEnd'. Find the increase in their averages truncated to have at most three decimal places (fewer if some of those places are trailing zeros). Look at the test data for examples. As preconditions, you may assume that 'vGradesEnd' has a higher average than 'vGradesStart' and that neither array will be empty. test2022_05_16_SL_climbingGradeProgress([1, 2, 3, 4, 5], [3, 4, 7]) → 1.666 test2022_05_16_SL_climbingGradeProgress([2, 4, 5, 6, 7, 6, 5, 6, 3, 3, 1, 2], [7, 8, 9, 9, 8, 6, 9, 8, 9]) → 3.944 test2022_05_16_SL_climbingGradeProgress([1, 5, 2, 2, 3, 3, 4, 1], [5, 6, 7, 9, 9]) → 4.575 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy