PLEASE ANSWER AS SOON AS POSSIBLE Transcribed Image Text: (c)

PLEASE ANSWER AS SOON AS POSSIBLE Transcribed Image Text: (c)
Write a program segment to find a student with the lowest average mark
from the array. Display the name of the student with the lowest average
mark. Transcribed Image Text: Q2
Answer Q2(a)-Q2(c) based on the information given in FIGURE Q2.
/*In
this
is
declared
to
store
students’
program,
Еach
an
array
records.
record
shall
contain
name,
marks
of
first and
second tests,
average marks of the
tests,
and
status
of
the
or “Fail”). Note that this program is
performance (e.g. “Pass”
incomplete.* /
#include
#include
#include
#define MAX_NUM 5
int main() {
struct Student{
char name[20];
double test1, test2; //marks for first and second tests
double averageTest;
char status[20];
//student’s name
//average marks
//performance status
};
typedef struct Student Student;
Student studentArray[MAX_NUM];//array of students’ records
FIGURE Q2

-25-


Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us



Essay Hope