Studentts with excellent grades: John Smith 90 Students with ok grades Al Clark
ID: 3626085 • Letter: S
Question
Studentts with excellent grades:John Smith 90
Students with ok grades
Al Clark 80
Ann Miller 75
Students with failure grades:
Sue Taylor 55
Total number of students: 4
Average grade: 75
Highest grade: John Smith 90
Lowest grade: Sue Taylor 55
extending the program to print the list of students ordered by grade (highest first). Use bubble sort for sorting the array.
I have the program done, im just trying to use a bubble sort so i can print the list of the students ordered by the highest grade.
I need like a format. thanks
Explanation / Answer
alright so bubble sort works by comparing two values next to each other. ill just give you pseudo code for most of this, if you want more just let me know. So: void bubbleSort() { bool go=true; bool swaped=false; int tmpGrade; String tmpNAME; while( go) { for ( int i=0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.