about | help | code help+videos | done | prefs |
Write a method that returns your final quiz grade given the following input parameters: 'origQuizGrade' is your original quiz grade. If you do not get the bonus, this will be your final quiz grade. 'bonus' is how much the bonus is worth. 'getBonus' tells if you are getting the bonus or not. If 'getBonus' is true you will get the bonus, otherwise you do not get the bonus. Look at the test data for examples. test2023_09_08_APP1SLHL_(40, 60, true) → 100 test2023_09_08_APP1SLHL_(-50, -10, true) → -60 test2023_09_08_APP1SLHL_(-80, 180, true) → 100 ...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: 220
Copyright Nick Parlante 2017 - privacy