Hi Guys,
I am doing an assignment which entails completing partially completed code i have been given and implementing a GUI front end.
I have 6 classes:
School
Person - abstract class which superclasses- Student, Lecturer, HeadOfSchool
HeadOfSchool - extends Lecturer
Student - extends Person
Lecturer - extends Person
Course
The application simulates a part of the University, Therefore i am required to read in data from a file.
Here is the data format:
I have managed to read in the school name,details of Head of School and number of lecturers. The problem i am having is reading in the lecturers. Within the HeadOfSchool class there is an attribute which is an array of lecturer objects. But the constructor has no array of lecturer objects param. Advice please? Sorry if i havent been very informative, having trouble understanding whats going on in my head haCode:Name of school
Details of the Head of School
Number of Lecturers
List of Lecturers
Name of course1, number of students
List of Students
Name of course2, number of students
List of Students
Name of course2, number of students
List of Students
Name of course3, number of students
List of Students
School of Computing
Prof Shirley Campbell,Aberdeen,female,45,45000
8
Dr John Smith,Aberdeen,male,40,28000
Dr Joan Simpson,Aberdeen,female,30,27500
Mr Tony Orlando,Banchory,male,40,27500
Dr Craig Stuart,Aberdeen,male,38,18500
Dr Moira Cables,Aberdeen,female,35,22500
Dr William Green,Aberdeen,male,38,35500
Mr Henry Brown,Aberdeen,male,37,27265
Ms Jill Blossom,Aberdeen,female,48,30000
Course UG1,4
Alan Smith,Aberdeen,male,35,A
Mary Grant,Banchory,female,25,B
Joe Bloggs,Aberdeen,male,42,A
Jack Hawkins,Stonehaven,male,30,C
Course UG2,5
Susan Clark,Aberdeen,female,18,C
Carol Roberts,Murcar,female,32,B
Roy Rogers,Ellon,male,37,B
Melanie Sykes,Murcar,female,22,A
Colin Firth,Aberdeen,male,27,A
Course UG3,3
Cindy Lauper,Aberdeen,female,27,A
Jim Bowen,Banchory,male,47,C
Andy Townsend,Arbroath,male,35,B

