write a program to find the eligibility of admission for a professional course based on the following criteria: marks in maths >= 75 marks in physics>=60 marks in chemistry>=60 the candidate is eligible for admission.
Answers
Python Code:
maths = int(input("Enter MATHS Marks: "))
physics = int(input("Enter PHYSICS Marks: "))
chemistry = int(input("Enter CHEMISTRY Marks: "))
if(maths >= 75 && physics >= 60 && chemistry >= 60):
print("Eligible for admission")
else:
print("Not eligible for admission")
Explanation:
#include <stdio.h>
void main()
{ int p,c,m,t,mp;
printf("Eligibility Criteria :\n");
printf("Marks in Maths >=75\n");
printf("and Marks in Phy >=60\n");
printf("and Marks in Chem>=60\n");
printf("and Total in all three subject >=190\n");
printf("or Total in Maths and Physics >=140\n");
printf("-------------------------------------\n");
printf("Input the marks obtained in Physics :");
scanf("%d",&p);
printf("Input the marks obtained in Chemistry :");
scanf("%d",&c);
printf("Input the marks obtained in Mathematics :");
scanf("%d",&m);
printf("Total marks of Maths, Physics and Chemistry : %d\n",m+p+c);
printf("Total marks of Maths and Physics : %d\n",m+p);
if (m>=65)
if(p>=55)
if(c>=50)
if((m+p+c)>=190||(m+p)>=140)
printf("The candidate is eligible for admission.\n");
else
printf("The candidate is not eligible.\n");
else
printf("The candidate is not eligible.\n");
else
printf("The candidate is not eligible.\n");
else
printf("The candidate is not eligible.\n");
}
To know more about computer science, visit:
https://brainly.in/question/11598117
https://brainly.in/question/5548551
#SPJ2