Question: Please use PHP to write the code: Declare an associative array named $company and initialize it with the above data. Write a function that returns

Please use PHP to write the code:

Please use PHP to write the code: Declare an associative array named

Declare an associative array named $company and initialize it with the above data.

Write a function that returns a new associative array of project and employees. For example,

[A => [Tom, Peter, Lily, Dave, Carl], B=> [Jim, Nanct, Ping]

function getEmployeesByProject($company)

Write a function that returns a new associative array of employees who have the highest salary in the

department E.g [Engineering => [Jim => 6000], Marketing => [Dave => 7500] ]

function getHighSalaryEmployeeByDept($company)

Write a function that prints the contents of the entire $company in a nice HTML table.

function printStore($company)

Assume that a company has the following inventories: Department Group Employee Engineering Hardware Tom Project JA Jim Software Peter Lily Nancy Carl Dave Ping Salary 5000 6000 5000 3000 14500 6000 Marketing America 7500 Asia 4500

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!