1.Create a PHP script based on the problem specification. 2. Make sure to put design (CSS) in your work. 3. On the first line of your code, comment your full name and section. 4. Lastly, create a document and put a screenshot of your output together with all your source code. Save your file as LastName_FirstName.docx
1.Create a PHP script based on the problem specification.
2. Make sure to put design (CSS) in your work.
3. On the first line of your code, comment your full name and section.
4. Lastly, create a document and put a screenshot of your output together with all your source code. Save your
file as LastName_FirstName.docx
Problem Specifications:
Write a PHP script by creating an “Employee” class having the following class behaviors and print the
final salary.
1 – constructor which will initialize the name of employee, number of hours work, employee’s rate
2 – getInfo() which will return the info of the employee.
3 – computeSalary() which will return the computed salary based on the employee’s rate multiply by
the number of hours work.
4 – Create 5 objects of class Employee with different values and test all the functions.
Step by step
Solved in 2 steps