The only problem is, that my function "display_binary" can't return anything (as she say's not to in the instructions), and the frequency, switch and command are supposed to be extracted and displayed from the main function.
The 3 leftmost bits represent the command, the lowest 4bits represent the frequency, and the 8th bit from the right, represents a switch value (on /
off). Your program should also display the input number in binary to verify the extracted
Example: If the input number is 41851, which is 1010 0011 0111 1011 in binary.
The command value is 101 or 5 in decimal, the frequency is 1011 or 11 in decimal, and
the 8th bit from the right is 0, which means switch is off.