Question: THIS uses C please help me i have 2 hours to submit Write code for the struct header file named student.c that consists of the

THIS uses C please help me i have 2 hours to submitTHIS uses C please help me i have 2 hours to submit

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: . addcourse() The function will take in two parameters: the Student variable possed by value, one Course information passed by reference. . The function will return the updated Student information. The function will add the course to the back of the courses Reg array and increase the numCourses for the Student by 1. If the course is added to the student, increment the curEnrollment for the Course by 1. 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. o printStudent 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!! " If the student is found, print the following each in new line: o id-name-gpa Number of courses - numCourses Print all courses in new line in the format - "subject - courseNo - maxEnrollment -curEnrollment

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!