// 22.5HV2 Software Engineering II // Unit 2 Exercise 3 #include #include "student.h" void main() { student group[3] = {student("Joe Bloggs"),student("Brian Smith"),student("Ann Jones")}; int i, ex, cw, sp, pm; for (i=0;i<3;i++) { cout << "Enter exam and coursework mark for student " << group[i].get_name() << ": "; cin >> ex >> cw; group[i].set_marks(ex,cw); } cout << endl << "Enter percentage split for exam: "; cin >> sp; student::set_split(sp); cout << endl << "Enter pass mark: "; cin >> ex; student::set_pass(ex); cout << endl << "split = " << student::get_split() << "% exam, " << 100-student::get_split() << "% course work" << endl; cout << "pass mark = " << student::get_pass() << "%" << endl; for (i=0;i<3;i++) group[i].show_result(); }