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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started