Design code in java test and document at least two classes


Design, code in Java, test and document (at least) two classes - a Student class and a client program, as follows: Write a Java class called Student which can be used to represent the details of a Student together with some associated operations. 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) (f) There are two assignments, each marked out of a maximum of 100 marks and equally weighted. The marks for each assignment are recorded separately. (g) There is weekly practical work. The marks for this component are recorded as a total mark obtained (out of a maximum of 10 marks) for all practical work demonstrated during the semester. (h) There is one final examination that is marked out of a maximum of 100 marks and recorded separately. (i) An overall mark (to be calculated within the program) (j) A final grade, which is a string (to be calculated within the program)

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 instance variables. (ii) a reasonable number of set and get methods (iii) input and output methods (iv) methods to compute the final overall mark and the final grade. 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. (v) an equals method which compares two student objects and returns true if they have the same student names, the same date of birth and the same student number, otherwise it returns false. 

You may add other methods as you see appropriate. 

The client program will allow entry of these data for several students into an array and then some analysis and queries.

Solution Preview :

Prepared by a verified Expert
Business Management: Design code in java test and document at least two classes
Reference No:- TGS01677035

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)