// Races // races.c // // This program calculates the fastest and slowest runners based // on their average lap time. #include #define MAX_SIZE 100 void find_fastest_and_slowest(double array[MAX_SIZE][MAX_SIZE], int num_rows, int num_cols); // This is a simple main function that you can use to test your // find_fastest_and_slowest function. // It will not be marked - only your find_fastest_and_slowest function // will be marked. // // Note: the autotest does not call this main function! // It calls your find_fastest_and_slowest function directly. // Any changes that you make to this main function will not affect the autotests. int main(void) { double array[MAX_SIZE][MAX_SIZE] = { {11.12, 12.30, 11.54}, {15.43, 15.67, 15.14}, {12.95, 12.43, 13.02}, {10.04, 10.56, 10.59}, {13.89, 14.05, 13.73} }; printf("First array: \n"); find_fastest_and_slowest(array, 5, 3); double array2[MAX_SIZE][MAX_SIZE] = { {22.56, 25.87, 23.68, 25.03}, {30.56, 29.18, 27.64, 29.06}, }; printf("\nSecond array: \n"); find_fastest_and_slowest(array2, 2, 4); return 0; } // Finds the fastest and slowest races from each runners average time void find_fastest_and_slowest(double array[MAX_SIZE][MAX_SIZE], int num_rows, int num_cols) { // TODO: Complete this function return; }