| about | help | code help+videos | done | prefs |
xcPoints
Calculate the number of extra-credit points that can be earned by completing the post-test AP Computer Science A assignment. The score is calculated by first subtracting the number of points earned from the total points possible on the exam and dividing it in half. But if this number is less than 5% of the total points possible then the score is 5% of the total points possible instead.xcPoints(0, 30) → 15.0 xcPoints(21.6, 30) → 4.199999999999999 xcPoints(24.6, 30) → 2.6999999999999993 ...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: 200
Copyright Nick Parlante 2017 - privacy