For this you will create a calculator application. The calculator should have the standard layout and support the following operations:
The calculator should have two internal registers that store operands for an operation. Once complete, the output of any operation should be stored in the first register and available as the first input of a subsequent operation. This supports a user pressing 1 + 1, which returns a 2. Then subsequent + 1 operations will display numbers increasing by one each time. Similarly, 2 + 2 will display 4 and then / 2 will display 2.
Parentheses to enforce order of operations - so that 4 / (2 + 2) will result in 1 and not 4.
Memory, which allows a user to store a value in a third register by pressing a button and then recall that value by pressing another button.