PLEASE ANSWER VERY QUICKLY I ONLY HAVE 40 MINUTES #include #include #define MAX_NUM 5int main () {struct Student{char name [20];double test1, test2; //marks for first and second tests//student's...


PLEASE ANSWER VERY QUICKLY I ONLY HAVE 40 MINUTES


Q2<br>Answer Q2(a)-Q2(c) based on the information given in FIGURE Q2.<br>/*In this program, an array is declared to<br>records. Each<br>second tests,<br>performance (e.g.
#include #include #define MAX_NUM 5 int main () { struct Student{ char name [20]; double test1, test2; //marks for first and second tests //student's name double averageTest; //average marks char status[20]; //performance status } ; typedef struct Student Student; Student studentArray[MAX_NUM];//array of students' records FIGURE Q2 Write a program segment to allow user to enter the name, marks of first test and second test for each student into the array. (a) (b) Write a program segment to calculate the average marks of the tests for each student in the array. Based on the average marks, update the status of all students. A student's status shall be assigned the value of "Fail" if the average mark is less than 40. Otherwise, status is assigned the value of "Pass". 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 (c) mark. "/>
Extracted text: Q2 Answer Q2(a)-Q2(c) based on the information given in FIGURE Q2. /*In this program, an array is declared to records. Each second tests, performance (e.g. "Pass" or "Fail"). Note that this program is incomplete.* / store students' record shali contain name, marks of first and average marks of the tests, and status of the #include #include #include #define MAX_NUM 5 int main () { struct Student{ char name [20]; double test1, test2; //marks for first and second tests //student's name double averageTest; //average marks char status[20]; //performance status } ; typedef struct Student Student; Student studentArray[MAX_NUM];//array of students' records FIGURE Q2 Write a program segment to allow user to enter the name, marks of first test and second test for each student into the array. (a) (b) Write a program segment to calculate the average marks of the tests for each student in the array. Based on the average marks, update the status of all students. A student's status shall be assigned the value of "Fail" if the average mark is less than 40. Otherwise, status is assigned the value of "Pass". 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 (c) mark.
Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here