Write a method named
pay that accepts a real number for a TA's salary and an integer for the number of hours the TA worked this week, and returns how much money to pay the TA. For example, the call
pay(5.50, 6) should return
The TA should receive "overtime" pay of 1 ½ normal salary for any hours above 8. For example, the call
pay(4.00, 11) should return (4.00 * 8) + (6.00 * 3) or
Method problem: For this problem, you are supposed to write a Java method as described. You should not write a complete Java class; just write the method(s) described in the problem statement.
Contacting server and running tests...
Is there a problem?
Contact a Practice-It administrator.