Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 -curEnrollmentStep 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