Binary Encoder Your binary encoder should prompt the user to enter an integer be
ID: 3638334 • Letter: B
Question
Binary EncoderYour binary encoder should prompt the user to enter an integer between 0 and 255 in decimal format. Then, the binary encoder should print out the binary equivalent of that value. You may assume that the user will enter an integer between 0 and 255. You may not use any methods in the Integer class. You may not use more than 4 if statements in your final solution. Hint: Solve this problem with several if statements first, and then use a loop to reduce the amount of code in your solution.