Question: Create a simple integer calculator using the MARIE computer and please make sure there are no errors and test it to make sure it works
Create a simple integer calculator using the MARIE computer and please make sure there are no errors and test it to make sure it works correct.
Please also send me the mas file after testing to make sure the code is correct not only the answer but the mas file.
The program should execute as follows:
Using the INPUT instruction wait for the user to enter a decimal number.
Using the INPUT instruction wait for the user to enter the operator as the ASCII
character or
Using the INPUT instruction wait for the user to enter a second decimal number.
Perform the desired addition, subtraction, or multiplication operation.
Store the result in a variable in memory.
Display the result via the OUTPUT instruction.
If an invalid operation is requested, display a zero as the result.
The code should be clearly commented.
Submit your MAS file to the Project dropbox.
The multiply can be done by repeated additions. For example, would be
calculated as You need to support a negative multiplier and negative
multiplicand
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
