JAVA pelase:
In this issue you will need to define a class called
Compare which contains a single String
compare method. The method will receive as parameters the
names of two students and two double numbers representing their GPA
and will return the name of the student with the highest GPA.
If the GPA value of the two students is equal, the name of the
student who is lexicographically smaller will be displayed.
Signature:
Example:
JAVA pelase: In this issue you will need to define a class called Compare which contains a single String compare method.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
JAVA pelase: In this issue you will need to define a class called Compare which contains a single String compare method.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!