Instructions:
Assume that you are reading from a data file. Each line contains a student’s last name and a test score. Write a program to print out the names and scores in descending order of test scores.
I know how to read the file. I just don't know how to make the names and scores in descending order of test scores. I also don't know how to read the file until all the names/scores are read.
here is an example, but there could be more names in the datafile, i don't know how many there will be.