Fill This Form To Receive Instant Help
Homework answers / question archive / The text file records
The text file records.txt, attached, contains student records. Each record, placed in one line, consists of a student name, their school's name and a course mark. Note that for each record (line), the student name, school name and mark are separated by a colon. Develop an algorithm, using Raptor, to sort and display the student records by mark in increasing value. The solution must work for any arbitrarily large file containing arbitrary values for student names, school names and marks (i.e. the number of student records and their content must not be hard coded in the algorithm).
For the provided example input file (records.txt), the expected output of the algorithm would be as follows:
Jane Doe:ITM:51
Nate East:ITM:53
Jim Solts:ITM:58
Taylor Tam:SAF:75
Navdeep Bahn:SAF:76
Tamara Ahmed:SBM:77
Tina Hamilton:ITM:78
John Wells:RTM:79