Write a program that promps a user for a binary number, which will be entered as a string of 0s and 1s in a character variable. This program should be able to handle numbers whos binary representation is up to 10 bits, corresponding to values from 0 to 1023.