You will implement the Student class and a Student Collection class StudentLL, using your own Linked List (not the Java Linked List). These classes implement the Interfaces StudentIF and StudentCollectionIF, respectively. You are provided with the following:
Student.java
StudentIF.java
StudentCollectionIF.java
StudentLLNode.java
StudentLL.java
StudentRecords.java
cs161
Notice that your code will *** NOT COMPILE ***; in particular code that instantiatiates variables of type StudentIF or StudentCollectionIF. To fix this, make Student implement StudentIF and StudentLL implement StudentCollectionIF, and follow the quick fixes from Eclipse to declare the interface methods to be implemented.
StudentIF.java
for a specification. Notice that StudentIF extends Comparable,
which means that a class implementing StudentIF must implement all methods
in the studentIF including the compareTo() method from the Comparable interface.
Make sure you declare that Student implements StudentIF; Eclipse can help you by
supplying the correct method declarations. See StudentIF for further
information.
cs161
, your program
should produce:
Course cs161: 5 grades Top Score: 90.0 Ave Score: 76.16 Course: cs161 Jim 1234 50 40 50 60 70 score: 54.00 John 1243 60 70 80 55 55 score: 64.00 Mick 1324 70 60 70 80 90 score: 74.00 Mike 1342 60 70 80 90 99 score: 79.80 Lena 1423 99 50 90 90 85 score: 82.80 Leila 1432 60 70 60 70 60 score: 64.00 Ada 2134 90 90 90 90 90 score: 90.00 Adam 2143 85 95 85 75 65 score: 81.00 Helen 2314 89 79 99 89 88 score: 88.80 Ellen 2341 90 95 88 77 66 score: 83.20Be aware that StudentRecords does not fully test your code.