/* * OVERVIEW: * ========= * This is the "interface" for the module that provides * basic functions to print and adjust (floating point) * grades. In the case of functions that deal with * multiple grades and adjustments, those values should * be stored in arrays. */ /* * Prints the integer grades in the array `grades'. * `Howmany' indicates the number of grades. * Grades are all printed on one line separated by * spaces and terminated by a newline. */ void PrintGrades(float grades[], int howmany); /* * Adjusts each grade in the `grades' array using * the corresponding change in the `adjustments' array. * `Howmany' indicates the number of grades. On return * from the function, the `grades' array that was passed * will contain the new grades. */ void AdjustGrades(float grades[], float adjustments[], int howmany); /* * Adjusts one grade and returns the new grade. * Currently, the adjustment technique is to * add the adjustment to the grade. */ float AdjustedGrade(float grade, float adjustment);