Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Little man computer

  1. Feb 11, 2007 #1
    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?
     
  2. jcsd
  3. Feb 11, 2007 #2

    verty

    User Avatar
    Homework Helper

    How much would you need to store in that case?
     
  4. Feb 11, 2007 #3
    there's no limit
     
  5. Feb 11, 2007 #4

    AlephZero

    User Avatar
    Science Advisor
    Homework Helper

    I think you misunderstood verty's post. You don't need to store all the input.
     
  6. Feb 11, 2007 #5
    Then how do you write it?
     
  7. Feb 11, 2007 #6
    Any suggestions?
     
  8. Feb 11, 2007 #7

    verty

    User Avatar
    Homework Helper

    Please give a detailed rationale why would you would need to store stuff without limit. What would you do with that stored stuff anyway?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Little man computer
Loading...