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

 

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

Write a method that rates your job on a scale of 1 to 100. Your job rating is based on your hourly wage. In fact, if you do not have healthcare or retirement, and your hourly wage is $100 per hour or less, your job rating is just your hourly wage. However, your rating is increased by 5 if you have healthcare or it is increased by 3 if you have retirement. If you have BOTH then you get an additional increase of 2. Keep in mind that scores are maxed-out at 100, so if your rating would be over 100, just return 100.


oct29JobRating(20, false, false) → 20
oct29JobRating(20, true, false) → 25
oct29JobRating(20, false, true) → 23

...Save, Compile, Run (ctrl-enter)

public int oct29JobRating(int hourly, boolean healthcare, boolean retirement) { }

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: 290

Copyright Nick Parlante 2017 - privacy