do q3 Question No 1: Create the following structures in C: Student : Name RegId Enrolled courses (Labs + Theory) Department Semester Faculty: Name Department Designation Salary: Implement the following scenario using functions: setMarks():This function will allow faculty member to set Student marks. getGpa(): Takes student as an argument and calculates the student’s GPA. displayStudent(): display the given student’s information. displayFaculty(): display the given faculty’s information. Question No 3: Refer to Question NO 01 Student structure and using pointer determine the senior student among two students. Print information of the senior student.
do q3
Question No 1:
Create the following structures in C:
- Student :
- Name
- RegId
- Enrolled courses (Labs + Theory)
- Department
- Semester
- Faculty:
- Name
- Department
- Designation
- Salary:
Implement the following scenario using functions:
- setMarks():This function will allow faculty member to set Student marks.
- getGpa(): Takes student as an argument and calculates the student’s GPA.
- displayStudent(): display the given student’s information.
- displayFaculty(): display the given faculty’s information.
Question No 3:
Refer to Question NO 01 Student structure and using pointer determine the senior student among two students. Print information of the senior student.
Given:
do q3
Question No 1:
Create the following structures in C:
- Student :
- Name
- RegId
- Enrolled courses (Labs + Theory)
- Department
- Semester
- Faculty:
- Name
- Department
- Designation
- Salary:
Implement the following scenario using functions:
- setMarks():This function will allow faculty member to set Student marks.
- getGpa(): Takes student as an argument and calculates the student’s GPA.
- displayStudent(): display the given student’s information.
- displayFaculty(): display the given faculty’s information.
Question No 3:
Refer to Question NO 01 Student structure and using pointer determine the senior student among two students. Print information of the senior student.
Step by step
Solved in 4 steps with 4 images