The document contains C code to calculate the average score of a student from an array of 5 grades, determine their letter grade based on the average, and print out the results. It defines functions to calculate the average score by summing the array and dividing by the length, and to assign a letter grade from 'A' to 'F' based on thresholds. The main function calls these to calculate and print the average and grade for a sample data set.
The document contains C code to calculate the average score of a student from an array of 5 grades, determine their letter grade based on the average, and print out the results. It defines functions to calculate the average score by summing the array and dividing by the length, and to assign a letter grade from 'A' to 'F' based on thresholds. The main function calls these to calculate and print the average and grade for a sample data set.
The document contains C code to calculate the average score of a student from an array of 5 grades, determine their letter grade based on the average, and print out the results. It defines functions to calculate the average score by summing the array and dividing by the length, and to assign a letter grade from 'A' to 'F' based on thresholds. The main function calls these to calculate and print the average and grade for a sample data set.