Question: a) The a php script should calculate the weekly pay for an employee who works 52 hours (i.e. 12 hours over time) given the following:

a) The a php script should calculate the weekly pay for an employee who

works 52 hours (i.e. 12 hours over time) given the following:

I.

Pay rate = 30/hr

II.

overtime pay:

1 hr of overtime

1.5 hrs (if employee works less than or equal

to 10 hours of overtime)

1 hr of overtime

2 hrs (if employee works more than 10 hours

of overtime)

b) In your code, make sure to do the following:

I.

Format the total pay to display only three decimal places.

(refer to the numbers.php file under Chapter 1 in the scripts that

you downloaded last week on how to format numerical values.

II.

Print to the screen the following message five times

Your total weekly pay is total_pay

Where, total_pay is the total weekly pay (regular 40 hr pay +

overtime pay)

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!