Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions