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. 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. 2. Each of the first four tasks should be performed by a separate function. 3. The information about each student is composed of the following attributes: Name, Surname, Specialization, and ID. 4. 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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

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. 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.
2. Each of the first four tasks should be performed by a separate function.
3. The information about each student is composed of the following attributes: Name,
Surname, Specialization, and ID.
4. 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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY