Write a c++ program which performs +, -, *, / and $ on hexadecimal operands. - 77804

Solution Posted by
jordanblink

jordanblink

Rating : (19)A+
Solution Detail
Price: $10.00
Request Description
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=
Solution Description

 

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=