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

 

tim@ggc.edu > getMoneyForProf
prev  |  next  |  chance

Professor BigBucks gets paid $300 per hour. But for overtime (any amount of time above 8 hours), the hourly rate is multiplied by 1.5. Calculate the amount of pay for the professor.


getMoneyForProf(8) → 2400.0
getMoneyForProf(4) → 1200.0
getMoneyForProf(10) → 3300.0

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

public double getMoneyForProf( int hours) { }

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

Copyright Nick Parlante 2017 - privacy