Max Value Finder: Little Man Program

  • Thread starter bennyboy123
  • Start date
  • Tags
    Program
In summary, the conversation is about writing a Little Man program that can accept an unknown amount of input values and output the largest value entered. The value 0 is used as a flag to indicate the end of input. The use of a loop and storing the value in an integer variable is suggested. The person asking for help is reminded to follow the forum rules and post their work in the appropriate subforum for homework and coursework questions.
  • #1
bennyboy123
3
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
  • #2
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.
 
  • #3
basically i just want to know should a loop be used and how is the value stored thanks
 
  • #4
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.
 
  • #5
Also, post your work here in the forum, not in a PM to me.
 
  • #6

1. What is the purpose of the "Max Value Finder: Little Man Program"?

The purpose of the "Max Value Finder: Little Man Program" is to find the maximum value within a given set of numbers. It is a computer program designed to automate the process of finding the largest number in a list.

2. How does the "Max Value Finder: Little Man Program" work?

The program uses a step-by-step process to compare each number in the list to the current maximum value. If a number is larger than the current maximum, it becomes the new maximum. This process continues until all numbers in the list have been compared and the final maximum value is determined.

3. Can the "Max Value Finder: Little Man Program" handle large sets of numbers?

Yes, the program is designed to handle both small and large sets of numbers. It is capable of finding the maximum value in a list of any size, as long as the numbers are within the program's capacity to handle.

4. Is the "Max Value Finder: Little Man Program" accurate?

Yes, the program is accurate in finding the maximum value in a list of numbers. It follows a systematic approach and does not make any assumptions about the data. However, it is important to ensure that the input data is correct and in the proper format for accurate results.

5. Can the "Max Value Finder: Little Man Program" be used for other purposes?

While the main purpose of the program is to find the maximum value in a list of numbers, it can also be used for other purposes such as finding the minimum value, average value, or even sorting the numbers in ascending or descending order. However, for these purposes, the program would need to be modified accordingly.

Similar threads

  • Programming and Computer Science
Replies
16
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
18
Views
5K
  • Programming and Computer Science
Replies
4
Views
605
  • Programming and Computer Science
Replies
12
Views
1K
  • Programming and Computer Science
Replies
2
Views
1K
  • Programming and Computer Science
Replies
16
Views
1K
  • Programming and Computer Science
Replies
25
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
  • General Math
Replies
16
Views
2K
Back
Top