C prog that reads records using a linked list
$30-5000 USD
Paid on delivery
You are to prepare a C program that reads a file containing employee records into a linked list (not an array). The program will then sort the list of records based upon a nominated field and then print a report of the employees. Employee information is as follows Employee Number Last Name First Name Hourly Rate The order shown is the order that information is stored in the file. The user runs the program by supplying two command line parameters. The first parameter is the name of the record data file. The second parameter is the number of the field to be sorted on. This can be a number in the range 1 to 4 with 1 being for employee number through to 4 for hourly rate. There are many algorithms for sorting data but the easiest (though not the most efficient) is Bubble Sort. To see how it works we start with a list of random numbers 7 4 6 1 8 5 Compare the 1st and 2nd number and if they are in the wrong order swap them around 1&2 4 7 6 1 8 5 Now compare the 2nd and the 3rd, the 3rd and the 4th and so on till the last two numbers. 2&3 4 7 6 1 8 5 3&4 4 7 1 6 8 5 4&5 4 7 1 6 8 5 5&6 4 7 1 6 5 8 At the end of this pass through the list it is slightly more ordered. We keep doing passes through the list until we make no more swaps. pass 2 4 1 6 5 7 8 pass 3 1 4 5 6 7 8 pass 4 1 4 5 6 7 8 After pass 4 we made no swaps so the list is now sorted in order. You can use this algorithm to sort the record list you create.
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done, including detailed comments
## Deadline information
deadline 29th October
Project ID: #2829522