Question: This is in C 1) You will create a program that manages employee records 2) Create a header file (lastname employeerec.h) that defines an employee
This is in C


1) You will create a program that manages employee records 2) Create a header file (lastname employeerec.h) that defines an employee data structure (SEMPLOYEE) that can be linked onto a linked list. The data structure should have the following fiel a. b. c. d. e. f. g. First Name (firstName) Last Name (lastName) Employee ID (id) Start Year (startYear) Starting Salary (startSalary) Current Salary (currentSalary) next 3) Create a library of functions that operate on this data structure. The source code for the functions should be in lastname employeerec.c and the function prototypes should be included in lastname_employeerec.h. The following functions should be in the library: a. sEMPLOYEE *create employee record) - allocates memory for a new b. sEMPLOYEE *add employee_record(SEMPLOYEE *employeeListHead, c. sEMPLOYEE *delete employee record(sEMPLOYEE employee record, prompts user, through the console, to enter the data for the employee, returns a pointer to the newly created employee record SEMPLOYEE *employee) - adds the employee record to a linked list; returns the new list head (it might have changed) *employeeListHead, unsigned int id) - deletes the employee record with the specified employee ID (can linear search to find record); returns the new list head (it might have changed) d. void print employee_record(SEMPLOYEE *employee) - prints the data n the emplovee record e. sEMPLOYEE *sort employee_records(sEMPLOYEE *employeeListHead)- sorts the list of employee records according to entire last name (must use bubble sort); returns the new list head (it might have changed) f. int write_employee records(char *filename, sEMPLOYEE *employeeListHead)-writes the list of employee records to a file; returns 0 on SUCCESS, 1 on FAILURE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
