about | help | code help+videos | done | prefs |
if-else practice: An employee typically works 40 hours per week. If they work over 40 hours per week they get paid 1.5 times their regular pay for all hours over 40. Complete the following function which will return their gross pay which includes overtime. Return floating point numbers. Hint:gross pay = (regular hours * pay rate) + (over time hours * pay rate * 1.5) grossPay(40.0, 20) → 800.0 grossPay(50.0, 30) → 1650.0 grossPay(30.0, 20) → 600.0 ...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: 100
Copyright Nick Parlante 2017 - privacy