Write a program in C that does the following. The program starts by offering the user the following list of options: 1. Please enter 1 to add a new record of students. 2. Please enter 2 to search for a student (using its ID number). 3. Please enter 3 to sort the records of students according to their ID numbers in an ascending order. 4. Please enter 4 to show the information of all students. 5. Please enter 5 to exit the program. Notes about the program: 1. Write your name and ID as comments in the first line of the source code. 2. After accomplishing any of the tasks (1, 2, 3, and 4) or entering an invalid value, the program will show the list of options again. 3. Each of the first four tasks should be performed by a separate function. 4. The information about each student is composed of the following attributes: Name, Surname, Specialization, and ID. 5. In the second options, if the student is found, its information will be shown on the screen. Otherwise, an error message should be displayed instead.
Write a
following list of options:
1. Please enter 1 to add a new record of students.
2. Please enter 2 to search for a student (using its ID number).
3. Please enter 3 to sort the records of students according to their ID numbers in an
ascending order.
4. Please enter 4 to show the information of all students.
5. Please enter 5 to exit the program.
Notes about the program:
1. Write your name and ID as comments in the first line of the source code.
2. After accomplishing any of the tasks (1, 2, 3, and 4) or entering an invalid value, the
program will show the list of options again.
3. Each of the first four tasks should be performed by a separate function.
4. The information about each student is composed of the following attributes: Name,
Surname, Specialization, and ID.
5. In the second options, if the student is found, its information will be shown on the
screen. Otherwise, an error message should be displayed instead.

Step by step
Solved in 3 steps with 2 images









