Question: Question 2 of 3 14 Points (a) Write PHP code to calculate weekly salary of an employee Code a constant to store the hourly rate

Question 2 of 3 14 Points (a) Write PHP code to calculate weekly salary of an employee Code a constant to store the hourly rate and initialis two camel case variables, one for storing the number of hours worked by an employee (initialise it to 42) and on payment for the employee, which is calculated by multiplying the constant to the number of hours worked Display the total number of hours worked and the payment for the month. Include appropriate labels in the output readable (7 marks) (b) Code an if else statement to check the number of hours worked and display appropriate message. Assume tha hours is worked is stored in a variable named Stotal_hours. If hours worked is 40, display a message You sufficient hours - keep going. If hours worked is less than 40, display a message you need to put inn hours worked is more than 40, display a message You are working too hard it is time for a bonus Maximum number of characters (including HTML tags added by text editor): 32.000 Show Rich-Text Editor and character coun O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
