Question: #java Student java.lang. Comparable studID: String studGrade: char + compareTo (o: Object): int + Students (name: String, studID: String, studGrade: char) + getStudiD(): String +

 #java Student java.lang. Comparable studID: String studGrade: char + compareTo (o:

Object): int + Students (name: String, studID: String, studGrade: char) + getStudiD():

String + getStudGrade () : char + determinePoint () : double Person

#java

Student java.lang. Comparable studID: String studGrade: char + compareTo (o: Object): int + Students (name: String, studID: String, studGrade: char) + getStudiD(): String + getStudGrade () : char + determinePoint () : double Person # name: String + Person() + Person (name: String) + toString() : String Write a program for a Student class based on the Figure 1. The student class has two attributes, one constructor, two mutator methods, two accessor methods and determinePoint () methods. The determinePoint () method will return a point obtained based on the grade. The grade and its associated point can be referred on a table below. The student class implements comparelo () method from java.lang.Comparable interface to compare the point obtained for two student objects. Write a test program that creates two Student objects with values of attributes are entered by the user. Display the information of all objects includes the point comparison result. Grade / Gred Point / Mata Nilai A 4.00 B 3.00 2.00 1.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!