The protected method greaterList (in chapter 6) of the LargeInt class assumes that its arguments have no leading zeros. When this assumption is violated, strange results can occur.
Consider the following run of the Large Integer Application that claims 35 - 3 is - 968:
Enter the first large integer:
35
Enter the second large integer:
003
First number: +35
Second number: +003
Sum: +038
Difference: -968
Process another pair of numbers? (Y=Yes): n
a. Why do leading zeros cause a problem?
b. Identify at least two approaches to correcting this problem.
c. Describe the benefits and limitations of each of your identified approaches.
d. Choose one of your approaches and implement the solution.
e. Share and discuss with your classmates.