Computer Science, asked by ahmednoor2008, 6 months ago

3. Draw a flowchart that allows the user to input the name of a student and two numbers for the grade of an Exam and a grade of a Quiz respectively. Compute the average grade of the student. If the computed average grade of the student is greater than or equal to 75, display and print the name of the student, average grade and the word “PASSED”. Otherwise, display and print the name of the student, average grade and the word “FAILED”

Answers

Answered by surekhagade629
0

Answer:

sorry I don't know this answer

Answered by shreyashiJoshi
1

Answer:

We can enter mark to our c program and the script will try to find out the grade by using series of if else condition checking. Each if else condition check for mark for a particular grade and if it is TRUE then all other checking ( if else ) are omitted. Here is the sample code.

#include <stdio.h>

int main(void){

int num;

printf("Enter your mark ");

scanf("%d",&num);

printf(" You entered %d", num); // printing outputs

if(num >= 80){

printf(" You got A grade"); // printing outputs

}

else if ( num >=60){ // Note the space between else & if

printf(" You got B grade");

}

else if ( num >=40){

printf(" You got C grade");

}

else if ( num < 40){

printf(" You Failed in this exam");

}

return 0;

}

Explanation:

please mark branliest and also follow me

Similar questions