1. Specify, design, and implement a class where each object keeps track of a large integer with up to 100 digits in base 10. The digits are stored in an array of 100 elements, and the sign of the...


1. Specify, design, and implement a class where each object keeps track of a large integer with up to 100 digits in base 10. The digits are stored in an array of 100 elements, and the sign of the number is stored in a separate instance variable, which is +1 for a positive number and –1 for a negative number.


The class should include several convenient constructors, such as a constructor to initialize an object from an ordinary int. Also write methods to provide the usual arithmetic operations (such as addition), arithmentic comparisons (to carry out comparisons on these big numbers), an input method, and an output method.

Nov 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here