id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > test2023_09_08_APP1SLHL_
prev  |  next  |  chance

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)

public int test2023_09_08_APP1SLHL_(int origQuizGrade, int bonus, boolean getBonus) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 220

Copyright Nick Parlante 2017 - privacy