Assign this number to a variable used in place of the 'hard coded' 3 to calculate students' averages and otherwise control the loops as needed to make the report. Use the number in a loop which builds the columns' headers and dashed lines at their feet. Take note that the array's first element is 0. LastGradePtr is set to one less than GradePtr by this process. The main steps and details for this algorithm are covered in class.
Bubble sorts are the least efficient of sorting algorithms, but are the simplest to write.
They make a 'classic' first algorithm for many students of programming. The concept of Records in Files is introduced. The files from last project had one number per 'record' in the file. A record is a complete set of information which is divided into fields, each of which contains one item of information. Here is an example showing how a 'phone directory' file is made of records each with three fields.