about | help | code help+videos | done | prefs |
grayScaleSimple() -- given three ints representing red, green and blue (in that order), return the average of the three ints that would be used to make the image grayscale. grayScaleSimple(1, 1, 1) → 1.0 grayScaleSimple(10, 20, 30) → 20.0 grayScaleSimple(0, 0, 210) → 70.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
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy