Write a function called highestpay that takes an array of


Please use C++

struct Employee

{

char name[20];

int empID;

double salary;

};

A variable of type Employee is then declared below.

Employee empArr[100];

Write a function called highestPay that takes an array of Employees like the one above and prints out the name of the employee with the highest salary.

Write a fragment of code to call this function with the array empArr. Show the definition of the function and the function call assuming it is called from the main.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a function called highestpay that takes an array of
Reference No:- TGS02894395

Expected delivery within 24 Hours