Question: Create a simple integer calculator using the MARIE computer. The program should execute as follows: Using the INPUT instruction wait for the user to enter
Create a simple integer calculator using the MARIE computer.
The program should execute as follows:
-
Using the INPUT instruction wait for the user to enter an integer number.
-
Be sure the dropdown for the Input field says Decimal
-
-
Using the INPUT instruction wait for the user to enter a second integer number.
-
Be sure the dropdown for the Input field says Decimal
-
-
Using the INPUT instruction wait for the user to enter the character +, - or *.
-
Be sure the dropdown for the Input field says ASCII. Then type the symbol for the operation you want, i.e. +, -, etc.
-
-
Perform the desired addition, subtraction or multiplication operation.
-
Store the result in a variable in memory.
-
Display the result via the OUTPUT instruction.
Submit your .MAS file to the Project 1 dropbox.
The multiply can be done by repeated additions. For example, 12 * 3 would be calculated as 12 + 12 + 12.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
