I need assistance with this part of the program because I am confused on how I can display the bit array as a continuous sequence of bits withing parenthesis. Also the comparison operators are a bit baffling for me too. If there is anyone that can help that would be great.
I don't know what the implementation of your BitArray is, However, you'd expect to operator== to return true if the two operands are the same, and operator!= to return the opposite.
As I don't know how BitArray is implemented, I can't offer anything helpful. If it's implemented using arrays, as you've indicated, then comparing the arrays and lengths would be the thing to do.