In MARS, use MIPS assembly to implement a calculator that realizes "The Order Of Precedence". The user must input an int
Posted: Thu May 05, 2022 12:54 pm
In MARS, use MIPS assembly to implement a
calculator that realizes "The Order Of Precedence".
The user must input an integer and the next line is the operator
next line is an integer and so on until = is entered, then
calculate the final result
Sample input
8
*
3
-
4
+
3
*
2
=
result 26
Please also show a screenshot.
The numbers and symbols are entered from the console, and one for each line.
The “+, -, *, /” (add, subtract, multiply, divide) must be include as operator . Note that the end of the sequence is indicated by a “=”.
calculator that realizes "The Order Of Precedence".
The user must input an integer and the next line is the operator
next line is an integer and so on until = is entered, then
calculate the final result
Sample input
8
*
3
-
4
+
3
*
2
=
result 26
Please also show a screenshot.
The numbers and symbols are entered from the console, and one for each line.
The “+, -, *, /” (add, subtract, multiply, divide) must be include as operator . Note that the end of the sequence is indicated by a “=”.