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

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!