Pregunta de entrevista de PLEXSYS Interface Products

This was the home programming assignment: Write a program to parse and evaluate arithmetic expressions. Your problem should support addition and multiplication at a minimum. It should be creating in an object oriented manner. Do not use the "shunting yard" algorithm.

Respuestas de entrevistas

Anónimo

7 jul 2017

I used a parse tree to evaluate the expressions. It was able to solve addition, subtraction, multiplication, and division (with some problems). It had input sanitation to make sure the input expressions were valid. Admittedly my code may not have been very clean, but it did perform the minimum requirements.

2

Anónimo

14 jul 2017

I had an I review a week out if school and they wanted me to do this on the whiteboard in front of 3 people. it was horrific. your lucky you got to take it home.

1