Question: The Bachelor of Computer Science (Data Engineering) is offered on a full-time basis, only at UTM Main Campus in Johor Bahru. The duration of study

The Bachelor of Computer Science (Data Engineering) is offered on a full-time basis, only at UTM Main Campus in Johor Bahru. The duration of study for the full-time programme is subjected to the student's entry qualification which requires a student to satisfy the following conditions if they intend to do a Bachelor of Computer Science (Data Engineering) at University Teknologi Malaysia. Write a C program to check whether they are eligible to enter the course. A student is only eligible to enter this university when they satisfy the condition in Table 1 below. There are at most 100 candidates. Table l: Subjects and Grades Grade Subject Mathematics Physic Greater or equal to 85 Greater or equal to 80 Greater or equal to 75 Greater or equal to 80 Chemistry average The program must satisfy the following requirements. a) Read the student's information from the keyboard which consists of identification number, student's name, and the students' examination grades (Maths, Physics and Chemistry). The example output on the screen is shown in Figure 1. b) Store all the input data in ID or 2D array. Calculate the average of the three subjects in function calAvrg. This function should accept math, physic, and chemistry as arguments and returns the average value. c) Determine whether the student is eligible or not eligible based on the condition in Table 1. d) Write the output that includes the student's information and list of students who are eligible in the output file ("result.txt"). The expected output in the output file is shown in Figure 2. Enter students'name :Ahmadi Enter student's ID: 111123 Enter grade for mathematics, physics and chemistry: pe 85.5 80.5 Do u want to enter any record:-> (Y/N) Y Enter students' name :Debbie Enter student's ID: 112233 Enter grade for mathematics, physics and chemistry: 85.5 83.5 74.5 po u want to enter any record:-> (Y/N) Y Enter students name :Sivarajah Enter student's ID: 123445 Enter grade for mathematics, physics and chemistry: Se 83 74.5 po u want to enter any record:-> (Y/N) N THANK YOU Figure 1: Sample output on the screen Student's name Ahmadi Debbie Sivarajah STUDENTS' INFORMATION ID maths physic chemist average 111123 90.00 85.50 80.50 85.33 112233 85.50 83.50 74.50 81.17 123445 80.00 83.00 74.50 79.17 students who are eligible: Ahmadi 111123 Figure 2: Sample output in the output file (result.txt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
