In examination the grades are awarded to the students in science according to the average marks obtained in the examination :
Marks Grades
80% and above Distinction
60% or more but less than 80% First Division
45% or more but less than 60% Second Division
40% or more but less than 45% Pass
less then 40% Promotion not granted
Write a program to input name and marks in physics, chemistry and biology .Calculate the average marks. Display the name, average marks and the grade obtained.
PLEASE DON'T ANSWER IF YOU DON'T KNOW
ANY MODERATOR OR ANY COMPUTER EXPERT ONLY ANSWER::
Answers
#include<stdio.h>
void main()
{
int marks;
printf("Enter your marks ");
scanf("%d",&marks);
if(marks<0 || marks>100)
{
printf("Wrong Entry");
}
else if(marks<45)
{
printf("Pass");
}
else if(marks>=45 && marks<60)
{
printf("Second Division");
}
else if(marks>=60 && marks<80)
{
printf("First Division");
}
else if(marks>=80 && marks<100)
{
printf("Distinction");
}
else
{
printf("Distinction");
}
}
Answer:
According to the average marks obtained in the examination.
Grades
Distinction
Marks
80% and above
60% or more but less than 80%
First Division
45% or more but less than 60%
40% or more but less than 45%
Less than 40%
Second Division
Pass
Promotion not granted
Write a program to input name and marks in Physics, Chemistry and
Biology. Calculate the average marks. Display the name, average marks
and the grade obtained.
ending Computer Applications with BlueJ-IX