#include #include #define NUM_SCORES 5 #define SCORE0 87 #define SCORE1 92 #define SCORE2 97 #define SCORE3 83 #define SCORE4 79 int main() { unsigned char *scores; float average; scores = (unsigned char *) malloc (sizeof(unsigned char) * NUM_SCORES); *(scores+0) = SCORE0; *(scores+1) = SCORE1; *(scores+2) = SCORE2; *(scores+3) = SCORE3; *(scores+4) = SCORE4; average = ((float)(SCORE0+SCORE1+SCORE2+SCORE3+SCORE4)/NUM_SCORES); fprintf(stdout, "Your scores are, %hhu, %hhu, %hhu, %hhu, %hhu\n", SCORE0, SCORE1, SCORE2, SCORE3, SCORE4); fprintf(stdout, "Your average is, %f\n", average); return(0); }