C++ program to find the eligibility of admission for an engineering course based on the following criteria.
Marks in Maths >=65
Marks in Phy >=55
Marks in Chem>=50
Total in all three subject >=180
or
Total in Math and Subjects >=140
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #include<iostream> using namespace std; int main() { int p, c, m, t, mp; cout << "Eligibility Criteria for an engineering:" <<endl; cout << "Marks in Mathematics >= 65" <<endl; cout << "Marks in Physics >= 55" <<endl; cout << "Marks in Chemestry >= 50" <<endl; cout << "Total in all three subject >= 180" <<endl; cout << "or Total in Maths and Physics >= 140" <<endl; cout << "-------------------------------------" <<endl; cout << "Input the marks obtained in Physics :" <<endl; cin >> p; cout << "Input the marks obtained in Chemistry :" <<endl; cin >> c; cout << "Input the marks obtained in Mathematics :" <<endl; cin >> m; cout << "Total marks of Mathematics, Physics and Chemistry :" << m + p + c << endl; cout << "Total marks of Maths and Physics :" << m + p; if (m>=65) if(p>=55) if(c>=50) if((m + p + c) >= 180 || (m + p) >= 140) cout << "The candidate is eligible for admission." <<endl; else cout << "The candidate is not eligible." <<endl; else cout << "The candidate is not eligible."<<endl; else cout << "The candidate is not eligible."<<endl; else cout << "The candidate is not eligible."<<endl; } |
03 November 20190 2748 Written By: Rohit Mhatre
© 2020 Tech Study. All rights reserved | Developed by Tech Study| Privacy Policy | Sitemap