Design a class called CustomBigInteger. The class should contain an array of size 50 elements where each element of the array is a digit of a number. This means you can store an integer up to 50 digits long. NOTE: You do not have to worry about negative numbers.
Provide the following methods in your CustomBigInteger class:
Create a driver / tester which asks the user for two large integers. Use the input to create two CustomBigInteger and show the output of add and subtract.
NOTE: You may find that this program is easier to implement if you store the digits starting from the last index to the first.
A Set is a mathematical construct where each value in the set is unique. Design a class called CustomSet which will be an object which can hold a set of integers in the range 0 100. The set is represented by an array of boolean values. An element of the array is true if the integer represented by that index is in the set, false if not in the set.
The no-arg constructor initializes the array to the "empty set" (all values in the array should be false). You should also provide another constructor which takes an integer array as an argument. The values in the array should then be used to initialize the CustomSet object. The parameter array should only hold values between 0 and 100.
Provide a method insertElement which inserts a new integer into the set (by setting that index position to be true). Provide a method deleteElement which deletes an integer from the set (by setting that index position to be false).
Also provide a toString method which prints out a string representation of your CustomSet object. If the set is empty, you may print out an empty pair of {}. Your string representation should look something like: {1, 2, 6, 10, 42}.
Design another class of static methods called CustomSetUtils which has the following static methods:
Write a tester class which asks the user to enter numbers for two different sets and then print out the results of calling union and intersection on both sets. Also demonstrate that insertElement and deleteElement work.