Samee W.

asked • 04/10/19

Computer Science - Raptor Programming - Sorting Problem

Given the text file grades.txt containing student names, their school names and marks respectively, use Raptor to develop an algorithm to sort the marks in decreasing values. Note the format of the grades.txt (Attached) where the name of a student is immediately followed, in the next two lines, by the name of their school and their mark respectively. The sorted marks shall be written to a file called sortedgrades.txt. For the example data given in grades.txt, the content of the sortedgrades.txt must be stored in the format shown below:


John Bolton: ITM : 71

Jan Chen : ITM : 85

Mohamed SaLazar : SBM : 87

Meriam Sandburg : HTM : 67

Mat Simms : HTM : 72

Navdeep Bahn : ITM : 88

Mary Eastman : ENT : 74


1 Expert Answer

By:

Patrick B. answered • 04/22/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.