Question: I keep getting an error for this code and I don't understand why?>

I keep getting an error for this code and I don't understand why?>

function calcPaycheck{ if ($hoursWorked <=40){ ($payCheckAmt=$hoursWorked * $hourlyWage); echo "Your paycheck amount is $", $payCheckAmt; } else {($payCheckAmt=(($hoursWorked*$hourlyWage)+(($hoursWorked-40)*$hourlyWage)*1.5); echo "Your paycheck amount is $", $payCheckAmt; }

?>

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 Databases Questions!