I am working on a project for school that requires me to compute binary numbers and I am having trouble with it. It needs to be able to handle an input of binary, octal, decimal, and hexadecimal. For each input it needs to have the output of the sign/magnitude, one's complement, and two's complement.
How do I do something like this?
Thank you very much,