Discuss the steps that would be needed to make the


Problem

1. If we use the standard library class stack in our calculator, the method top( ) returns the top entry off the stack as its result. Then the function do_command can then be shortened considerably by writing such statements as case 0-0 : numbers.push(numbers.pop( ) - numbers.pop( ));

(a) Assuming that this statement works correctly, explain why it would still be bad programming style. (b) It is possible that two different C++ compilers, both adhering strictly to standard C++, would translate this statement in ways that would give different answers when the program runs. Explain how this could happen.

2. Discuss the steps that would be needed to make the calculator process complex numbers.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Discuss the steps that would be needed to make the
Reference No:- TGS02642904

Expected delivery within 24 Hours