Tutorial 4 Lecturer: Steve Bellantoni Tutor: Andria Hunter ========== 981019 @10am (RW229) @1pm (EM108) CSC108, Fall 1998 Tutorial notes, T4 ================================================================== Topics: - Marking Scheme for A1 - Questions about A1 - General Questions about A2 - Midterm Exam - take up questions from last year Collect Assignments ------------------- They must put their name, birthday (day/month), student number, tutor name, and lecture time on their assignment. Marking Scheme for A1 --------------------- Correctness (7 marks) 1. Main method (code to read data for student) - prompt user for input - construct student object - check the return value of addStudent so user knows when the application centre is full. 2. addStudent (in ApplicationCentre) - add student s into appropriate student object variable - return false if not space for another student 3. Main method (code to accept applications) - call getStudent - check if the object returned from getStudent is null to avoid error when setAcceptance is called on this object - call setAcceptance 4. getStudent (in ApplicationCentre) - should return the appropriate student object 5. toString (in Student) - no printing should be done in this method - use words rather than printing true/false - provide all information about a student, including student's name, 3 university choices, and whether they were accepted at each of these universities Style (1 marks) - header comments (comments your name, etc, at top of class with main method) - commenting (comments for each class, method, and major section of code) - formatting (indentation) - white space - variable names should describe what the variable stores - variable names should start with lowercase character - constant names should start with uppercase character (eg. STOPPER, not stopper) Testing (2 marks) Circled below are the tests you didn't implement ... - less than 4 students entered - more than 4 students entered - no students entered at all - invalid student number - invalid university number - accepting the same application twice - non-numerical data entered for student/university number - non-text data entered for student/university name - Did not show output - Did not annotate tests