Question: Write a MARIE assembly language program to solve the following problem. For a set of numbers input by the user, calculate the sum of the
Write a MARIE assembly language program to solve the following problem.
For a set of numbers input by the user, calculate the sum of the positive numbers and the sum of the negative numbers. The program should output both sums. Numbers should be input one at a time with a zero value (0) being used to signal the end of data (the zero value is acting as a "sentinel" value).
For examle, if you input the values: 1010 -510 -3010 1510 2010 -110 010, then you program should output 4510 and -3610.
Before you start writing MARIE assembly language, write a high-level language algorithm. THEN, translate it to MARIE assembly language.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
