Read the binary number from the user and store it into a C string (i.e. char[ ])
The c string shall be able to accommodate a 32 bit binary number, note each digit in the binary number is a character, and there must be a null character at the end to terminate the string
In the event that the user does not enter a legitimate binary number, print an error to the console and exit
Convert the binary number into a decimal number
Since the binary number is a string, you do not need to shift the number as before to access individual bits