Question: I NEED THE CODE IN C LANGUAGE PLEASE! AND I NEED THE .C AND .H FILES SEPARATELY CODED. THE FILES THAT I NEED: employee.c ,
I NEED THE CODE IN C LANGUAGE PLEASE!
AND I NEED THE .C AND .H FILES SEPARATELY CODED.
THE FILES THAT I NEED: "employee.c" , "employee.h", "employeePayroll.c", "linkedList.c", "linkedList.h"
THANK YOU!


In case you need the skeleton: employee.c
//Syed Hasan
#include
struct employee* buildEmployeeList(char* filename) { //Scan each line of file "filename" using fscanf and create a struct //containing the data that you get back. You should initialize the //other members which you did not get data for (netIncome, taxesWitheld, next pointer) //to some known value. It would be wise to set 'next' to NULL! }
void writeSalaryInfoToFile(struct employee* listHead, char* filename) {
}
linkedList.c
//Syed Hasan
#include
//Add the struct 'emp' to the end of the linked list pointed to //by 'listHead' (the first node in the list) //return a pointer to the first node in the list (listHead) struct employee* append(struct employee* listHead, struct employee emp) {
}
//Search for an employee in the list who has the name 'name' //if found, return a pointer to the employee struct //otherwise return NULL struct employee* search(struct employee* listHead, char* name) {
}
//delete all nodes in the list. This means freeing memory void clearList(struct employee* listHead) {
} employeePayroll.c (main)
//Syed Hasan
#include
#define TAX_RATE 0.15f #define FULL_TIME 40 #define OVERTIME_RATE_MULTIPLIER 1.5f
void getSalaryInfo(struct employee* emp);
int main(int argc, char* argv[]) {
}
void getSalaryInfo(struct employee* emp) {
}
Home Tools Project 6.pa SignIn Project 6 Due July 18th at 11:59 PM Export PDF Create PDF Edit PDF In project 5 you used a statically allocated array to hold your employee structs. Reimplement project 5 so that it uses a dynamically allocated linked list instead of an array. Each node in the list is an employee struct and should be dynamically allocated. The same employee struct from project 5 can be reused, but with a single added member 'next' that is a pointer to the next employee in the list Cambne Files Adobe Acrobat Pro DC Learn more In addition, you will implement an "Employee Bonus" feature which will allow you to choose one employee to give a bonus too. The employee name and the bonus amount to give should be entered as command line arguments. The bonus amount should be added directly to their calculated net income. If you enter an employee name which does not exist, no one gets the bonus. :0 Organ ze Pages ill & Sign Send for Signature .. Send & Track More Tools Do not sort the list. If you implemented the extra credit from project 5, remove the call to selection_sort() so that the output is not sorted All other previous functionality of project 5 should carry over to project 6 An example execution of the program Store and na and shana las in programName employees.txt payday.txt rippetoe 100.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
