Question: Programming Assignment 1: Create a simple integer calculator using the MARIE computer. The program should execute as follows: 1. Using the INPUT instruction wait for

Programming Assignment 1:

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 a decimal number.

2.

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

3.

Using the INPUT instruction wait for the user to enter the operator as the character

+, - or *.

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.

7.

If an invalid operation is requested, display a zero as the result.

8.

The code should be clearly commented.

Submit your .MAS file to the Project 1 dropb

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!