Question: Write a MARIE program to allow the user to input 8 integers (positive, negative, or zero) and then find the smallest and the largest and

Write a MARIE program to allow the user to input 8 integers (positive, negative, or zero) and
then find the smallest and the largest and print each of these out.


As an example, if the user enters the following decimal numbers as input (one after the other) 

23, -6, 78, 0, 36, 3, -250, –5


the program would output the following values as the maximum and minimum, respectively:
78
-250


Assume that the user will always provide valid numbers as input; that is, do not worry about
dealing with invalid input data.


Write comments within your program so that a reader can understand it easily.

Step by Step Solution

3.50 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a MARIE assembly language program that meets your requirements by allowing the user to input eight integers and then finding and printing the sm... View full answer

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 Programming Questions!