Calculator solving three digits doesn't work properly?

Well, you're only storing the last two operands, so for your example of 1 + 2 + 3 = 5, the 1 is lost when you enter the second + sign, and 2 + 3 = 5.

You only store the last two "inputs" entered (in previousInput and currentInput) so when you go to three or more operands without first hitting =, all but the most recent two disappear.

Your problem is when you add a new operator you just shift your values with out doing any calculations, if a previous operator is stored and both values are set when adding a new operator you need to do calculations for the existing values and operator before changing the stored operator.

Because in your InEquals() method, you only use previousInput and currentInput so your 1 + 2 + 3 = 5 because for the 2nd '+' result = 2 + 3.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions