Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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; i