Question: Use the MARS simulator to write and test programs in questions 1, 2, 3, and 4. MARS and related resources (including sample assembly programs and

Use the MARS simulator to write and test programs in questions 1, 2, 3, and 4. MARS and related resources (including sample assembly programs and tutorials) can be found on Canvas (Module 2) Q1 (40 points) Write and test a program that repeatedly reads in integers using system calls and multiplies them into a running product. If a negative integer is given the program should get its absolute value and use it for running product. The program should stop when it gets an input that is zero, or if the product exceeds 2048, printing out the product at that point (zero should not be included in the running product). Enter Number (0 to stop): 10 Enter Number (0 to stop) : 10 Enter Number (0 to stop): 10 Enter Number (0 to stop): 0 The product =1000 progran is finished running
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
