Criteria enforcing programm

The file format the program will read from



First Name : john
Last Name : peter
Gender : M
Student ID : 7483289
Course Code : 20174893
Year : 2017
The Applicants has the Following Grades
Math 20
English 38
English literature 54
Civic Ed 60
Accounts 58
Science 40
Biology 39
Accounts 40

First Name : Lisa
Last Name : McSon
Gender : F
Student ID : 3674765
Course Code : 20813672
Year : 2018
The Applicants has the Following Grades
Math 70
English 34
Pure Math 67
Civic Ed 88
History 54
Physics 50
Chemistry 67
Biology 56


First Name : Chitalu
Last Name : Malama
Gender : F
Student ID : 4672762
Course Code : 20146437
Year : 2014
The Applicants has the Following Grades
Math 59
English 50
Sicence 88
Food and Nutrition 45
Biology 56
Religious Education 60
Geography 55




First Name : Malika
Last Name : Chili
Gender : F
Student ID : 4729208
Course Code : 20137346
Year : 2013
The Applicants has the Following Grades
Math 45
English 34
Science 56
Art & Music 34
Biology 56
History 49
Civic Ed 37

First Name : :Leo
Last Name : Chili
Gender : M
Student ID : 4825218
Course Code : 20207346
Year : 2013
The Applicants has the Following Grades
Busniess Math 65
Math 80
English 74
Science 66
Technology Studies 64
I.T 56
History 79
Civic Ed 87


This program is supposed to read grades of applicants for a file then calculate for those who meet the following criteria

1) Math,English and science must be greater than 50.
2) Any other 3 subjects must be greater then 50 so the applicants must six plus the three in the above condition.

For same reason the institution decides that a one can qualify if the he or she has better grades in the substitute subjects as follows
if Pure Math greater than Math
if English literature grade is greater than English
if is Science is not part of the subjects then
Physics and Chemistry are considered.

I need help with the code..
Also posted in beginners forum http://www.cplusplus.com/forum/beginner/274128/

Please don't x-post into different forums.
Topic archived. No new replies allowed.