Question: Code must be in C Objectives: Pointer arithmetic, struct Specification: in this lab. three functions need to be implemented/modified based on the two previous prelabs.

Code must be in C Code must be in C Objectives: Pointer arithmetic, struct Specification: in this

lab. three functions need to be implemented/modified based on the two previous

Objectives: Pointer arithmetic, struct Specification: in this lab. three functions need to be implemented/modified based on the two previous prelabs. 1. createArray function: An Employee array needs to be created with its size stored in front as an integer. After creating the array, your array should look like this: size, employee1, employee2....employeeN First line of the provided csv file contains the number of structs and each of the following lines contains the age. zipcode. and salary for each employee. Store age and zipcode as ints, while saving salary as a float 2. numfEmployee function, which receives an Employee array, and returns the size of the array, which has been stored in front as an integer. 3 Static function. which computes the average salary and average age among all employees and returns them using two float pointers. Note: hard coded values or user input values are not allowed in this lab. All data should be read from the provided csv file Main program steps 1 Create an array like mentioned before 2 compute average salary and average age using "Statict function and print them out B Free allocated memory (optional), Example output Average salary is 95209.19, average agels 39.16 work/employee.csv 1 5 2 51,63021, 66697 3 49,53021, 105042 4 38,53022, 90639 5 36, 54444, 99791 6 47,65203, 64527 work employee

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!