Exam 2 Preparation
Below are links to two applets which will be used on the exam.
You job will be to fill in the code that makes them functional.
All of the classes and methods will be declared, but some of the method
bodies will be eliminated. This test is comprehensive in that it
will cover all of the programming topics we've covered in class so
far. If you've done and understand your homework, the majority of
this exam should not be too difficult because it tests you on problems
very much like the homework you've done. The exam will be
administered without the use of a computer.
- Top Ten
Top ten is an applet that keeps track of the top ten numbers
entered. There are three parts to this applet:
- TopTen.java
This class keeps the double values for the top ten scores in an
array. This class is observable.
- TopTenPanel.java
This class keeps two arrays of JLabels. One is for the numbers
1-10, and the other is for the scores. This class observes TopTen
- TopTenTest.java
This is the class which makes an applet with a place to enter scores
and a display of the TopTenPanel.
- Directory
This applet keeps a list of mappings of name to id mappings and is
capable of entering and looking up names and their corresponding
ids. This is a very simple example of what might be used for
access control
- Know when and why to use one collection over another.
- Be able to compare and contrast linear and binary search.
- Be able to trace through loops and if statements.