Design an algorithm that accepts two values, the hourly rate and the number of hours worked by an employee. If the number of hours exceeds 40, then the excess hours should be paid at an overtime rate of twice the hourly rate. Calculate wages (including overtime, if any) due to the employee.

4 answers

<br />
hrly wage
<br />
start
enter h1 (hrly wage), h2 (# of hoursworked by employee)
IF h2 > 40 then
product- 40 - extra
It hard
Help me plzzzzzzzzzzzzzzzzzzzzzz