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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started