Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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 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 1: Subjects and Grades Grade Greater or equal to 85 Subject Mathematics Physic Chemistry Greater or equal to 80 Greater or equal to 75 Greater or equal to 80 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 the status (eligible or not eligible) in the output file ("result txt"). The expected output in the output file is shown in Figure 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 Do 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: 88 83 74.5 Do u want to enter any record:-> (Y/N) N THANK YOU Figure 1: Sample output on the screen Do 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions