|
|
| The program reads from this file |
Lucy Mubanga F 2562346 Mark Bwalya M 2436586 john peter M 7483289 Lisa Phiri F 3674765 Chitalu Malama F 4672762 Naomi Kanaka M 6436728 Malika Chewe F 4729208 Raymod Daka M 3894782 Lucy Kalinga F 5849535 Jack Kakwekwe M 7548394 Emmanucle Fuka M 4325673 Brian Mwale M 5327834 Lisa MWeka F 1895865 Prince MWamba M 4563982 Fuka Malambo F 6273244 peter Chizyuka M 3429174 Leo Chili M 482518 |
| then it compares for a match in this file |
john peter M 7483289 20174893 2017 90 88 74 60 70 50 68 Lisa McSon F 3674765 20813672 2018 70 34 67 88 44 30 02 Chitalu Malama F 4672762 20146437 2014 59 50 88 45 34 70 99 Frank Robarts M 6546727 20016367 2001 68 45 34 34 67 23 78 Malika Chili F 4729208 20137346 2013 45 34 56 34 56 34 35 Leo Chili M 482518 20207346 2020 65 80 74 66 64 56 79 |
If a match is found then it outputs this |
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
|
| so now i need it to calculate or check if the students meet the criteria |
|
|
|
|
john peter M 7483289 20174893 2017 90 88 74 60 70 50 68 |
john peter M 7483289 20174893 2017 90 88 74 60 70 50 68 Lisa McSon F 3674765 20813672 2018 70 34 67 88 44 30 02 Chitalu Malama F 4672762 20146437 2014 59 50 88 45 34 70 99 Frank Robarts M 6546727 20016367 2001 68 45 34 34 67 23 78 Malika Chili F 4729208 20137346 2013 45 34 56 34 56 34 35 Leo Chili M 482518 20207346 2020 65 80 74 66 64 56 79 |
Lucy Mubanga F 2562346 Mark Bwalya M 2436586 john peter M 7483289 Lisa Phiri F 3674765 Chitalu Malama F 4672762 Naomi Kanaka M 6436728 Malika Chewe F 4729208 Raymod Daka M 3894782 Lucy Kalinga F 5849535 Jack Kakwekwe M 7548394 Emmanucle Fuka M 4325673 Brian Mwale M 5327834 Lisa MWeka F 1895865 Prince MWamba M 4563982 Fuka Malambo F 6273244 peter Chizyuka M 3429174 Leo Chili M 482518 |
|
|
john peter M 7483289 20174893 2017 90 88 74 60 70 50 68 Lisa McSon F 3674765 20813672 2018 70 34 67 88 44 30 2 Chitalu Malama F 4672762 20146437 2014 59 50 88 45 34 70 99 Malika Chili F 4729208 20137346 2013 45 34 56 34 56 34 35 Leo Chili M 482518 20207346 2020 65 80 74 66 64 56 79 |
john peter M 7483289 20174893 2017 Math-90 Eng-88 Eng_lit-54 Civic_ED-74 Accts-60 Sic-70 Bio-50 Lisa McSon F 3674765 20813672 2018 Math-70 Eng-34 PMath-67 Civic_ED Hist-88 Phys-44 Chem-30 Bio-02 Chitalu Malama F 4672762 20146437 2014 Math-59 Eng-50 Sic-88 FnN-45 Bio-34 R.E-70 Geo-99 Frank Robarts M 6546727 20016367 2001 Math-68 Eng-45 AnM-34 Bio-34 Hist-67 Civic_ED-23 Malika Chili F 4729208 20137346 2013 Math-45 Eng-34 AnM-56 Bio-34 Hist-56 Civic_ED-34 35 Leo Chili M 482518 20207346 2020 Bus_Math-65 Eng-80 Sic-74 Tech-66 I.T-64 Hist-56 Civic_ED-79 As abbreviated Eng_lit = English Literature Civic_ED = Civic Education Accts = Accounts Sic = Sicence Bio = Biology PMath = Pure Math Phys = physics Che = Chemistry FnN = Food And Nurition R.E = Religious Education AnM = Art and Music Hist = History Tech = Technology studies |
For my problem its important it satisfies the criteria at the end of the execution |
john peter M 7483289 20174893 2017 Math-90 Eng-88 Eng_lit-54 Civic_ED-74 Accts-60 Sic-70 Bio-50 Lisa McSon F 3674765 20813672 2018 Math-70 Eng-34 PMath-67 Civic_ED Hist-88 Phys-44 Chem-30 Bio-02 Chitalu Malama F 4672762 20146437 2014 Math-59 Eng-50 Sic-88 FnN-45 Bio-34 R.E-70 Geo-99 Frank Robarts M 6546727 20016367 2001 Math-68 Eng-45 AnM-34 Bio-34 Hist-67 Civic_ED-23 Malika Chili F 4729208 20137346 2013 Math-45 Eng-34 AnM-56 Bio-34 Hist-56 Civic_ED-34 Leo Chili M 482518 20207346 2020 Bus_Math-65 Eng-80 Sic-74 Tech-66 I.T-64 Hist-56 Civic_ED-79 |
|
|
john peter M 7483289 20174893 2017 Accounts 60 Biology 50 Civic Education 74 English 88 English Literature 54 Mathematics 90 Science 70 Criteria met! Lisa McSon F 3674765 20813672 2018 Biology 2 Chemistry 30 English 34 History 88 Mathematics 70 Pure Math 67 Physics 44 Criteria not met Chitalu Malama F 4672762 20146437 2014 Biology 34 English 50 Food And Nutrition 45 Geography 99 Mathematics 59 Religious Education 70 Science 88 Criteria not met Malika Chili F 4729208 20137346 2013 Art and Music 56 Biology 34 Civic Education 34 English 34 History 56 Mathematics 45 Criteria not met Leo Chili M 482518 20207346 2020 Business Mathematics 65 Civic Education 79 English 80 History 56 Information Technology 64 Science 74 Technology studies 66 Criteria not met |
|
|
| if is Science is not part of the subjects Physics and Chemistry are considered. |
|
|