Question: fixit 2 . php Purpose: What's wrong here? The program is giving a 1 0 0 . 0 0 bonus although the hours worked is

fixit2.php
Purpose: What's wrong here? The program is giving a 100.00 bonus
although the hours worked is not more than 40!
Can you fix it? Hint: the problem is that only the
FIRST statement after if ($hoursWorked >40) is
associated with the test, but we want the TWO statements
following the test to only be executed if the test is true.
How do we accomplish this? What is missing?
-->

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!