Finding the Largest Value with Little Man Computer

  • Thread starter Thread starter buttonmutton
  • Start date Start date
  • Tags Tags
    Computer
Click For Summary

Discussion Overview

The discussion revolves around writing a program for the Little Man Computer (LMC) that can accept an indefinite number of input values and determine the largest among them. The focus is on the programming logic and storage requirements for handling inputs in LMC.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant asks how to write a program that accepts indefinite input values and outputs the largest value.
  • Another participant inquires about the storage requirements for handling such inputs.
  • One participant asserts that there is no limit to the number of inputs that can be stored.
  • A different participant suggests that the previous comment may have misunderstood the requirements, indicating that not all inputs need to be stored.
  • There is a request for clarification on how to implement the program without needing to store all input values.
  • Another participant seeks suggestions for writing the program.
  • One participant challenges the idea of needing unlimited storage, asking for a rationale on what would be done with the stored values.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of storing all input values, with some suggesting it is not required while others argue about the implications of storage limitations. The discussion remains unresolved regarding the best approach to implement the program.

Contextual Notes

There are unresolved assumptions about the capabilities of the Little Man Computer regarding input handling and storage limitations, as well as the implications of storing data without limit.

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?
 
Technology news on Phys.org
How much would you need to store in that case?
 
there's no limit
 
I think you misunderstood verty's post. You don't need to store all the input.
 
Then how do you write it?
 
Any suggestions?
 
Please give a detailed rationale why would you would need to store stuff without limit. What would you do with that stored stuff anyway?
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
17
Views
2K
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
23K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K