CS 1713 Introduction to Computer Science, Spring 2008 Project 1 Comments
- Most people did not follow the directions:
Do Part 1
Test Part 1
Do Part 2
Test Part 2
...
- Most people made the problem much harder than it needed to be.
- Testing is important. Many people just added 1 + 2.
- You should only need two fields, the array of int and the boolean plus.
- The constructor stores the string in the array backwards.
- Choose appropriate names for your identifiers.
Example: array is not a good name for a VeryBigInteger or for the length
of an array.
- The minus sign should not be stored in the array of ints.
- The toString should produce a string containing only the number.
- toString should not print anything.
- toString makes a string from the array backwards
- When subtracting numbers of the same sign or adding number of different
signs, you need to figure out which one has a bigger magnitude.
This is not the same as which is longer.
A solution will eventually be available
here
Part 1
Part 2