+2 votes
in Class 12 by kratos

Admission to a college in science branch is given if the following conditions are satisfied

(i) Maths marks >= 80

(ii) Physics marks >= 75

(iii) Chemistry marks >= 70

(iv) Total percentage in all three subjects >= 80

Given the marks in three subjects, write a program to process the applications to list the eligible candidates.

1 Answer

+1 vote
by kratos
 
Best answer

A C program to process the applications to list the eligible candidates is listed below:

include<studio.h>

include<conio.h>

void main()

{

float math,phy,che;

float per;

char ch;

clrscr();

printf("\nDo u want to enter any record:-> ");

ch=getch();

while(ch=='y' ||

ch=='Y')

{

clrscr();

printf("\nEnter Marks in Math:-> ");

scanf("%f",&math);

printf("\nEnter Marks in Physics:-> ");

scanf("%f",&phy);

printf("\nEnter Marks in Chemistry:-> ");

scanf("%f",&che);

per=(math+phy+che)/3.00;

if(math>=80.00 && phy>=75.00 && che>=70.00 && per>=80.00) printf("\nYou are eligible for selection.");

else

printf("\nSorry you are not eligible!!"); printf("\nDo u want to enter new record:-> "); ch=getch();

}

printf ("\nThanks for using it!");

getch();

}

...