Explore BrainMass

Little Man Computer: largest of three values.

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

Write a Little Man Computer (LMC) program that accepts three values as input and produces the largest of the three as output.

© BrainMass Inc. brainmass.com March 21, 2019, 7:38 pm ad1c9bdddf

Solution Preview

Please note that given program is a sample implementation and it is possible to have more than one implementations solving the same problem. This program has been tested using the Little Man Simulator at http://www.atkinson.yorku.ca/~sychen/research/LMC/LittleMan.html .

INP // Accept first number from user and
STA FIRST // store it in location FIRST.
INP // Accept second number from user and
STA SECOND // store it in ...

Solution Summary

Program mentioned in text response has been commented well to make it easier to understand the implemented logic.