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:

  1. Using the INPUT instruction wait for the user to enter an integer number.

    1. Be sure the dropdown for the Input field says Decimal

  2. Using the INPUT instruction wait for the user to enter a second integer number.

    1. Be sure the dropdown for the Input field says Decimal

  3. Using the INPUT instruction wait for the user to enter the character +, - or *.

    1. Be sure the dropdown for the Input field says ASCII. Then type the symbol for the operation you want, i.e. +, -, etc.

  4. Perform the desired addition, subtraction or multiplication operation.

  5. Store the result in a variable in memory.

  6. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!