Reference no: EM132152278
Topic is Structures and Array of Structures
example
struct Date
{
int month;
int day;
int year;
};
(a), write a C program that has the following functions: a. Write a function called createStudent that takes the student identification number, credits completed and GPA, and returns a student record.
b. Assume that a student can graduate if their total credits is 100. Write a function called checkGraduation that takes a student record and returns TRUE if the student can graduate and FALSE if the student cannot graduate.
c. Write a function called fillStudents that takes an array of five students and gets the student details from the user and fills that array with the values.
d. Write a function called resetCredits that takes a student record and resets his (her) total credits to zero.
e. Write a function called avgGPA that takes an array of students, and returns the average GPA for that array of students.
f. Write a function called avgGPACredits that takes an array of students, and returns the average GPA and average total credits for that array of students.