Assignment 0
There has been a question regarding the base of the numbers involved in
the subtract method. You can assume that the numbers involved in the
subtract method have the same base. Where the subtract method is used in
the
starter code the numbers being subtracted always have the same base.
Assignment 0
WARNING: The handout clearly says that you must use our algorithm and
our code
to convert
from one base to the other. We will be checking programs and students who
have not followed these directions will receive a zero for the assignment.
Assignment 0
A student made an observation regarding the copyTo method in the NIB
class. After execution of copyTo, my number of digits will either stay
the same or be smaller than my number of digits before execution.
This is correct. copyTo is used to copy digits to me when I am
shrinking. (Specifically copyTo is used in the divide and remainder
methods as the
part of the dividend that is meaningful shrinks.)
By contrast, my putDigit method is used when my number of digits
maybe growing.
Some students have reported confusion when converting from one base to a larger base. Eg.
Assignment 0
There is a flaw in the starter code for Assignment 0. The class NIB
has
Assignment 0
Students, who are compiling the java files using a newer version of java,
will get a warning that requests they use the -deprecation flag when
compiling. Recompile as follows:
Assignment 0
The input is not exactly as described in the assignment hand out. The
assignment says the input is three integer values. In fact the input is
three values:
Assignment 0
The general example of a positive integer:
has n+1 digits not n as stated in the assignment.
Places to go: