70.4k views
7 votes
Develop a C program to read the name and score of a student .The program should calculate the status given the following . If score is equal to or greater than 50 then status is "PASS" otherwise "FAIL".

User Femi Oni
by
4.1k points

1 Answer

4 votes
Ok this is a little compilated but do this

#define boolean _Bool
#define false 0
#define true 1

Make an array list of students and names

int main()
{
boolean pass = false;
boolean fail = false;

Now make some more code to compare the grades and names
for(int I = 0; standard procedure)
{insert code here}
}

Sorry if I am not that helpful it is 1:00 in the morning right now.
User Dilan Premarathna
by
3.5k points