Assignment 2 .pdf - ICT167 Assignment 2 1 TM 2020 MURDOCH UNIVERSITY ICT167 Principles of Computer Science TM 2020 Assignment 2(worth 20 for the unit

Assignment 2 .pdf - ICT167 Assignment 2 1 TM 2020 MURDOCH...

This preview shows page 1 - 3 out of 5 pages.

ICT167 Assignment 2 1 TM, 2020 MURDOCH UNIVERSITY ICT167 Principles of Computer Science TM, 2020 Assignment 2 (worth 20% for the unit) Due: Midnight on Saturday of Week 12 All Students : Submit the Assignment via LMS by the due date. Late penalty : 10% per day penalty for delayed submissions unless prior extension of deadline is obtained from the unit coordinator. You should keep a copy of your work. Your submission must include a completed assignment cover sheet. An electronic copy of the assignment cover sheet is available at the unit LMS site. Note: You have to use ArrayList for this assignment. You may be asked to demo the program to your lecturer and answer some questions. Make sure you understand everything you are submitting. Read and understand the information at - technologies/What-you-need-to-know/ Question First, you need to design, code in Java, test and document a base class, Student. The Student class will have the following information: A. Title of the student (eg Mr, Miss, Ms, Mrs etc) B. A first name (given name) C. A last name (family name/surname) D. Student number (ID) – an integer number (of type long ) E. A date of birth (in day/month/year format – three ints) - (Do NOT use the Date class from JAVA) The student class will have at least the following constructors and methods: (i) two constructors - one without any parameters (the default constructor ), and one with parameters to give initial values to all the instance variables. (ii) a reasonable number of set and get methods. (iii) methods to compute the final overall mark and the final grade (which will be overridden in the respective child classes). These two methods will be void methods that set the appropriate instance variables. Remember one method can call another method. If you prefer, you can define a single method that sets both the overall mark and the final string grade, but if you do this, use a helper method. (iv) an equals method which compares two student objects and returns true if they have the same student names, and the same date of birth, otherwise it returns false. (v) method to sort the array into ascending order of students’ numbers (IDs) You may add other methods in the student class as you see appropriate.
Image of page 1
ICT167 Assignment 2 2 TM, 2020 Design, code in Java, test and document (at least) three classes – a CourseWorkStudent class, a ResearchStudent class (which both derive from the Student class) and a client program.
Image of page 2
Image of page 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture