c++ hexadecimal operation
Write a c++ program which performs +, -, *, / and $ on hexadecimal operands. The maximum length of any operand or a solution is 40 digits. The input will be in the following format:
Op1 op op2 =
There is no space between operands and operator.
Note
5/2 = quotient 2, remainder 1
2$3 = 8 (means 2 to the power of 3)
The output should be of the form
2*3=6.
Read date from a file.
Upload the source code, executable and output.
TEST DATA:
AAAA+BBF=
BFD+2DE=
100*AA=
100$5=
100/F=
10000000000000-1=
AAAAABBBBBCCCCCDDDDDEEEEEFFFFF-ABCDEF0123456789ABCDEF=
FACDFDB1/45CDF521=