In my very last method ( int BTD) I am trying to read a
string input form right to left when the input for the integer starts with one ( in this case a negative number , since I am
testing for binary ) . Basically I am doing the � Two�s Complement� method on the negative number turn it into a positive binary number and just add the �-� negative sign in front of it , something like ( result = �-� + result ) . So I have no problem taking the positive binary number and converting to decimal , but can not figure out the correct way to code the negative number block of code ? Please any suggestions would be of great help !! listed below is my code , it attaches to a user class that gets the I/O but my professor did not give us access to that code . Thank you everyone for the insight !