/* File: april.c Comparing user reported temperatures against historical average temperatures observed at BWI Airport. All data taken from www.wunderground.com. */ #include int main() { // Historical April average mean temperatures observed at BWI. int mean[30] = { 49, 49, 50, 50, 50 ,50, 51, 51, 52, 52, 52, 53, 53, 53, 54, 54, 54, 54, 55, 55, 56, 56, 56, 56, 56, 57, 57, 57, 57, 58 } ; // Historical April average maximum temperatures observed at BWI. int max[30]= { 59, 60, 60, 61, 61, 61, 62, 62, 62, 63, 63, 64, 64, 64, 65, 65, 65, 66, 66, 66, 67, 67, 67, 67, 68, 68, 68, 69, 69, 69 } ; // Historical April average minimum temperatures observed at BWI. int min[30] = { 38, 39, 39, 39, 40, 40, 40, 41, 41, 41, 41, 42, 42, 42, 43, 43, 43, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 46, 46, 47 } ; printf("The average mean temperature on April %d is %dF.\n", 1, mean[0]) ; printf("The average min temperature on April %d is %dF.\n", 15, min[14]) ; printf("The average max temperature on April %d is %dF.\n", 30, max[29]) ; return 0 ; }