The programmer will write the ExpressionSolverRunner that will use the ExpressionSolver class to solve an integer expression provided by the ExpressionSolver

 

The programmer will write the  ExpressionSolverRunner that will use the ExpressionSolver class to solve  an integer expression provided by the ExpressionSolver textfile. An  expression will a String and it will be comprised of number and the  mathematical operators +, *, /, and -. The % operation will not be a  part of this program. In order to read an expression, the user must read  the expression from left to right performing the multiplication and  division operators before attempting the subtraction arguments. The  programmer should be careful to follow the order of operations, or they  will not get the correct answer. The calculation is integer mathematics,  so there will be no rounding but just truncation. The programmer should  take particular care when a multiplication and a division or next to  each other and make sure to do the operations from left to right. There  will be no parenthesis in the expression. 

Tags: No tags