Question: Write a C++ program which performs +, -, *, / and $ on hexadecimal operands. The maximum length of any operand or a solution is

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

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=

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!