Max Value Finder: Little Man Program

  • Thread starter Thread starter bennyboy123
  • Start date Start date
  • Tags Tags
    Program
Click For Summary

Discussion Overview

The discussion revolves around writing a Little Man program that accepts an unknown number of input values and outputs the largest value entered, using 0 as a flag to indicate the end of input. The focus is on programming concepts, specifically loops and variable storage.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant requests help with writing a Little Man program to find the maximum value from user inputs, indicating that the input ends with a zero.
  • Another participant emphasizes the need for proper formatting of homework questions and encourages the original poster to show their progress and specific areas of difficulty.
  • A participant suggests that a loop should be used to process the inputs and mentions that the maximum value can be stored in an integer variable, with the loop terminating when zero is entered.
  • There are multiple reminders for the original poster to share their work in the forum rather than through private messages.
  • Participants highlight the importance of posting in the correct subforum for homework-related queries.

Areas of Agreement / Disagreement

Participants generally agree on the need for proper forum etiquette and the importance of showing work for homework questions. However, there is no consensus on the specific implementation details of the program, as participants have not provided a unified approach to the coding challenge.

Contextual Notes

There are limitations regarding the clarity of the requirements for the programming task, such as the specific programming language to be used and the exact nature of the input handling.

Who May Find This Useful

Individuals interested in programming, particularly those learning about loops and variable management in the context of homework assignments.

bennyboy123
Messages
3
Reaction score
0
Write a Little Man program to accept an unknown amount of input values. the largest value enetered will be the output value. the value 0 should be used as a

flag to indicate the end of input.
Any suggestions please help,
 
Computer science news on Phys.org
Please post this in the proper format for homework problems and show what you have been able to do yourself and ask specific question about what you are stuck on.

Also, you should read the forum rules. Just asking for an answer is not how this forum works.
 
basically i just want to know should a loop be used and how is the value stored thanks
 
The value is stored in an integer variable. The loop stops when the variable gets set to zero.

Please post all of you requirements, this is clearly homework. We need to know what language(s) you are required to use, etc.
 
Also, post your work here in the forum, not in a PM to me.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 18 ·
Replies
18
Views
8K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K