Question: In C language Student - Angel course - CS1714 Write code for the struct header file named student.c that consists of the following: includes for
In C language
Student - Angel
course - CS1714
Write code for the struct header file named "student.c" that consists of the following: includes for header files needed function prototypes for the following functions: o addcourse() The function will take in two parameters: the Student variable passed by value, one Course information passed by reference. The function will return the updated Student information. o The function will add the course to the back of the coursesReg array and increase the numCourses for the Student by 1. o If the course is added to the student, increment the curEnrollment for the Course by 1. o Adding a course should only be allowed if the numCourses are less than 10 AND if there is a space in the course, i.e., the curEnrollment is less than the maxEnrollment for the course. printStudent () o The function will take in three parameters: the Student array, the length of the array, and the id for the student to be printed. o if the student is not found, print "Student not Found!! " o if the student is found, print the following each in new line: o id - name - gpa o Number of courses - numCourses o Print all courses in new line in the format - "subject - courseNo - maxEnrollment -curEnrollment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
