Housekeeping Here are some things to be aware of.
- Next Tuesday: LP0. The purpose of this lab practical is
to see how well you can use the Java documentation. Featured
classes will be
String
,ArrayList
, andBigInteger
. There will also be a "mystery class" you have not yet used but you will need to figure out how to use. - Reading:
j1.pdf
should be done. You should readj2.pdf
andj3.pdf
. All of this is present in Canvas.
BigFraction
This is a case study on extended-precision rational arithmetic.
We will build an API for this in class. At the same time, you should
build the API for Vector3D
. You will implement the
interface IVector3D
. Do not change this; I will be compiling
your code against my master copy. It is best to code up the corresponding
pieces as we go through BigFraction
.
Extended precision arithemetic (methods) add multiply divide subtract powers abs intValue ("cast" to integer) max min negate remainder signum pow (int n) toString equals What does a BigFraction need to KNOW? numerator denominator These will be immutable.