I would like to know how I should implement this user story. As in, can someone explain it to me in a simpler fashion as it is described in the challenge on what I am supposed to do. Perhaps with some random equation examples on how the calculator should handle them so I can better understand the purpose of the story. It is the only story that is a bit vague and the only one left for me to pass.
If the user entered two (2) operators (+, *, or /), use the last operator entered. If the last operator entered was -, treat it as a negative sign and not as an operator.
I can tell you how I handled this part of the logic when I completed this project.
My overall strategy was to create a concatenating string from user input (evaluating whenever there was a complete expression).
Whenever consecutive operators were entered, the most recently entered operator would concatenate onto the string, replacing the previous operator.
The only exception is the minus/negative operator, which has to be handled slightly differently.