Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 6 Weeks Ago, 4 Days Ago |
Questions Answered: | 7559 |
Tutorials Posted: | 7341 |
BS,MBA, PHD
Adelphi University/Devry
Apr-2000 - Mar-2005
HOD ,Professor
Adelphi University
Sep-2007 - Apr-2017
Write a program that processes a data file of students’ course grade data. The data arrive in random order; each line stores information about a student’s last name, first name, student ID number, grade as a percentage, and letter grade. For example, here are a few lines of data:
Your program should be able to sort the data by any of the columns. Use Comparators to achieve the sort orderings. Make the data sortable by last name, student ID, and grade percentage in ascending and descending order. For example, here are the lines of student data sorted a few different ways:
Ans-----------wer----------- Â----------- -----------imp-----------ort----------- ja-----------va.-----------io.-----------Fil-----------e; -----------imp-----------ort----------- ja-----------va.-----------io.-----------Fil-----------eNo-----------tFo-----------und-----------Exc-----------ept-----------ion-----------; i-----------mpo-----------rt -----------jav-----------a.u-----------til-----------.*;----------- pu-----------bli-----------c c-----------las-----------s S-----------tud-----------ent----------- { -----------// -----------cla-----------ss -----------var-----------iab-----------les----------- pu-----------bli-----------c S-----------tri-----------ng -----------las-----------tNa-----------me;-----------