Implement a Java program that is capable of performingthe basic
arithmetic operations (add, subtract, multiply, divide) on binary
numbers using only logical operations (i.e., not using the actual
mathematical operators thatJava already supports).A skeleton for
the implementation is provided and can be downloaded from Canvas.In
this source file (BinaryCalculator.java), there is
already code to read stringsfrom the keyboard. The
program will exit if the string “QUIT” is received, otherwiseit
will attempt to process commands of the form:
<binary operand 1> <operator> <binary...