Question: Write a Linux program to store 40 student's information in an array structure. Each student's record has the following fields: First Name, Last Name, Social
Write a Linux program to store 40 student's information in an array structure. Each student's record has the following fields: First Name, Last Name, Social Security Number, Student ID, Number of courses taken, and Major. Your program should have at least the following functions:
1. Main()
2. Read each student's record from a batch file and store it in an array of records. Create a text file.
3. Sort the list by name and store it in a second array of records.
4. Sort the list by social security number and store it in the second array of records.
5. Add a new record to the list.
6. Search student's records by name. If more than one student is found with the same name then search by social security number.
7. Search student's records by social security number.
8. Delete a record.
9. Display the first array of records.
10. Display the list sorted by name.
11. Display the list sorted by social security number.
12. Display a student's record.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
