Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago