Explore BrainMass

Little Man Computer: largest of three values.

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 July 17, 2018, 9:27 am 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.