How do would I incorporate a function that prints averages for each student in a class. I want to use A=1, B=2, C=3, D=4, and F=5. What would be the best way to go about doing this?
Thanks
Code:#include <stdio.h> #define CLASS_SIZE 100 struct student { char *last_name; int student_id; char grade; } #include "cl_info.h" int main(void) { struct student temp, class[CLASS_SIZE]; temp.grade = 'A'; temp.last_name = "Smith"; temp.student_id = 39498;