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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started