|
|
|
| |
NOTE: Don't do any
homework until the assignment is confirmed in class! |
|
|
|
Wed. 1/6
- Due Monday 1/14 |
|
|
| |
This assignment will get the ball rolling. We start with
a review of Java basics. At the same time we will discuss "good"
programming disciplines. Finally, we want to start integrating object
oriented programming into our thinking.
|
|
|
|
 | Read/skim chapters 1-7 and develop a list of discussion
topics for review. Most of the "structured programming" syntax should seem
familiar. For those new to Java, there will be many questions from the
first seven chapters.
|
 | Develop a class that represents a data set. A data set
is simply a "bunch" of integers. Use a Vector inside the class to hold the
integers. Provide the following public methods:
 | addData() |
 | clearData() |
 | count() |
 | sum() |
 | toString()
|
|
 | Create a driver program to test your DataSet class.
Show the use of all the public methods. Use only console output (no GUI).
On second thought, if you wish to add user input and a GUI, that is optional.
|
 | Finish your Rational class and the driver to show it in
use. Include your HTML and put the whole thing into a JAR archive (HTML
and all). Email it to me, no later than Tuesday.
|
|
|
|
|
Don't read below here
for assignments! |
|
|
|
Do problem number 8.17 page 443, IntegerSet. The author
asks for a setPrint(), it is better to just over ride the toString()
method.Hand in the code from the last program if you have
not.
|
|
|
|
|
|
|
|
Finish the HugeInteger class, problem 8.11 on page 442.
Provide a simple GUI to demonstrate using the class. (We worked on this
class in lab.)Remember, code format and comments
are important!
|
|
|
|
|
|
|
|
Do problem 9.11 by next Monday 2/25.
|
|
|
|
|
|
|
| |
Do problem 9.24 by Wednesday 3/6. Your program may just
provide buttons for new shapes without asking the user for specifics such
as x, y, height, etc.
|
|
|
| |
|
|
|
| |
Come to class Wed. with your preliminary design for the
Othello (Reversi) game. See
http://www.mattelothello.com/
|
|
|