Question: (b) Code an if else statement to check the number of hours worked and display appropriate message. Assume that the number of hours is worked
(b) Code an if else statement to check the number of hours worked and display appropriate message. Assume that the number of hours is worked is stored in a variable named $total_hours. If hours worked is 40, display a message You have worked sufficient hours keep going. If hours worked is less than 40, display a message You need to put in more hours. If hours worked is more than 40, display a message You are working too hard it is time for a bonus.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
