file containing data about some students' options regarding a set of optional subjects is given. The file is available in the resources section of laboratory 2. The file contains 10,000 lines, each student having 2 consecutive lines from the file. On the first line of the two is the name of the student and on the second is a series of 4 codes representing the same number of options. Knowing that there are a total of 5,000 students and that no student's name is longer than 35 characters, it is required: · Read the data in the file in an array of 5,000 elements of the form · Knowing that the students are sorted alphabetically by name, to apply an optimal search algorithm, from those studied in this laboratory and to count the number of comparisons to find the student MATEI STEFAN.
Computer Science
A file containing data about some students' options regarding a set of optional subjects is given. The file is available in the resources section of laboratory 2. The file contains 10,000 lines, each student having 2 consecutive lines from the file. On the first line of the two is the name of the student and on the second is a series of 4 codes representing the same number of options. Knowing that there are a total of 5,000 students and that no student's name is longer than 35 characters, it is required:
· Read the data in the file in an array of 5,000 elements of the form <name, optional1, optional2, optional3, optional4>
· Knowing that the students are sorted alphabetically by name, to apply an optimal search
· Apply the linear search algorithm to locate all students who have chosen a particular option, given from the keyboard and display their names.
În C programing.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)