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 “=”.
In MARS, use MIPS assembly to implement a calculator that realizes "The Order Of Precedence". The user must input an int
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
In MARS, use MIPS assembly to implement a calculator that realizes "The Order Of Precedence". The user must input an int
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!