Question: 2. (a) Write down a structure capable of storing the following information about a student registered in CSE 103 course: (5) ID Gender Class
2. (a) Write down a structure capable of storing the following information about a student registered in CSE 103 course: (5) ID Gender Class test score Mid-term score Final Exam score Total score (b) Use the above structure to take input of N students' information as input in an array of structure. N will also be input to your program. (5) (c) In the same program, write down a function that will take students' information (within an array of structure) and the number of the students as parameters and returns how many of them failed. Assume that a student needs to obtain total 60 in order to pass in the exam. (5) (d) In the same program, write down another function that will take students' information (within an array of structure) and the number of students as parameters and returns the ID of the student obtaining the highest marks. (5)
Step by Step Solution
There are 3 Steps involved in it
a Heres a structure in MATLAB capable of storing the information about a student registered in CSE 1... View full answer
Get step-by-step solutions from verified subject matter experts
