// Here we do something almost impossible without arrays: we handle // a number of students that is unknown to the programmer. #include #include void main(void) { float grade_array[100]; // create storage locations for up to 100 grades int student; // the student number or index. int number_of_students; // the total number of students to handle // input the number of students: cout << "Number of students: "; cin >> number_of_students; // input the grades: for (student=0; student> grade_array[student]; } cout << endl; // see what are the good students for (student=0; student 7) cout << " Good work!"; cout << endl; } // THIS GOES WRONG AS THE PROGRAM BECOMES BIGGER AND MORE PEOPLE START // WORKING ON THEM. // THE CODE THAT PROCESSES PARTS SCATTERS AROUND TO TO MANY PLACES // MAKING IT DIFFICULT TO INCORPORATE CHANGES // TOO MANY PEOPLE WHO DO NOT FULLY UNDERSTAND HOW THE GRADES ARE // DEFINED MESS UP THINGS FOR THE OTHERS. }