Question: Based on the data structure defined in Q1. (a), write a C program that has the following functions: a. Write a function called createStudent that

Based on the data structure defined in Q1.

(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.

with stdio.h and stdlib.h

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!