First, you need to design, code in Java, test and document a base class, Student. The Student class will nave the following information, and all of these should be defined as Private: A. Title of the student (eg Mr, Miss, Ms, Mrs etc) 3. 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) only necessary set and get methods for a valid class design. iII) method to write the output of all the instance variables in the class to the screen (which will be overridden in the respective child classes, as you have more instance variables that required to be output). 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. iv) You may add other methods in the Student class as you see appropriate. CT167 Assignment 2 TJ, 2021 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. For coursework students: a) There are two assignments, each marked out of a maximum of 100 marks and equally weighted. The marks for each assignment are recorded separately. b) There is weekly practical work. The marks for this component are recorded as a total mark obtained (marked out of a maximum of 20 marks) for all practical work demonstrated during the semester. c) There is one final examination that is marked out of a maximum of 100 marks and recorded separately. d) An overall mark (to be calculated within the class) e) A final grade, which is a string (think of a way to avoid code duplication for calculating this) The final grade, for coursework students, is to be awarded on the basis of an overall mark, which is a number in the range 0 to 100 and is obtained by calculating the weighted average of the student's performance in the assessment components. The criteria for calculating the weighted average is as defined below: The two assignments together count for a total of 50% (25% each) of the final grade, the practical work is worth 20%, and the final exam is worth 30% of the final grade. For research students: a) There is a proposal component (marked out of a maximum of 100 marks). b) One final oral presentation (marked out of a maximum of 20 marks). c) One final thesis (marked out of a maximum of 100 marks). d) An overall mark (to be calculated within the class) f) A final grade, which is a string (think of a way to avoid code duplication for calculating this)
First, you need to design, code in Java, test and document a base class, Student. The Student class will nave the following information, and all of these should be defined as Private: A. Title of the student (eg Mr, Miss, Ms, Mrs etc) 3. 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) only necessary set and get methods for a valid class design. iII) method to write the output of all the instance variables in the class to the screen (which will be overridden in the respective child classes, as you have more instance variables that required to be output). 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. iv) You may add other methods in the Student class as you see appropriate. CT167 Assignment 2 TJ, 2021 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. For coursework students: a) There are two assignments, each marked out of a maximum of 100 marks and equally weighted. The marks for each assignment are recorded separately. b) There is weekly practical work. The marks for this component are recorded as a total mark obtained (marked out of a maximum of 20 marks) for all practical work demonstrated during the semester. c) There is one final examination that is marked out of a maximum of 100 marks and recorded separately. d) An overall mark (to be calculated within the class) e) A final grade, which is a string (think of a way to avoid code duplication for calculating this) The final grade, for coursework students, is to be awarded on the basis of an overall mark, which is a number in the range 0 to 100 and is obtained by calculating the weighted average of the student's performance in the assessment components. The criteria for calculating the weighted average is as defined below: The two assignments together count for a total of 50% (25% each) of the final grade, the practical work is worth 20%, and the final exam is worth 30% of the final grade. For research students: a) There is a proposal component (marked out of a maximum of 100 marks). b) One final oral presentation (marked out of a maximum of 20 marks). c) One final thesis (marked out of a maximum of 100 marks). d) An overall mark (to be calculated within the class) f) A final grade, which is a string (think of a way to avoid code duplication for calculating this)
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning