Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago