about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy