Finding the Largest Value with Little Man Computer

  • Thread starter Thread starter buttonmutton
  • Start date Start date
  • Tags Tags
    Computer
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 4K views
buttonmutton
Messages
4
Reaction score
0
How do you write a Little Man program which accepts an indefinite number of input values given the conditions that the output value has to be the largest of the input values.

Is it just by entering and storing input or otherwise?
 
Physics news on Phys.org
How much would you need to store in that case?
 
I think you misunderstood verty's post. You don't need to store all the input.
 
Then how do you write it?
 
Please give a detailed rationale why would you would need to store stuff without limit. What would you do with that stored stuff anyway?