Question: Instructions Design a function that will read and sort the file random_students.txt. Download random_students.txt.There are 100 students in the file. Start by reading the names

 Instructions Design a function that will read and sort the file

Instructions Design a function that will read and sort the file random_students.txt. Download random_students.txt.There are 100 students in the file. Start by reading the names and ID numbers into separate arrays. Then choose a sorting algorithm and sort both arrays so that the ID numbers are in the correct order. Write the sorted arrays back into a file called "sorted_students.txt". Sketch the function in comments before writing any code. Write a main function that calls your function and then prints the contents of sorted_students.txt to the console. Use comments to predict the first and last students in the newly sorted list. Implement your function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!