Read a text file contain 27 recorded names and ids, sort them by the alphabet of names, print them on screen, then search the id by entering the name using hashing of searching.
Project detail
Write a complete C program that does the following:
1) Read the data stored in the file “rec.txt” into an array of records containing the student ids and the student names.
2) Sort the array of records following the students’ names in alphabetical order and display the sorted names on the screen.
3) Prompt the user to search for the student id by the student’s name.
Submit the completed C program and the screenshot of the outputs (sorted names & searched id).
You may use any sorting algorithm to sort the array of records, but you need to use hashing for searching.
Resolve any collision (if any).
Note: Use your name as the key to search.