Register to reply

Little man program

by bennyboy123
Tags: program
Share this thread:
bennyboy123
#1
Nov19-12, 10:49 AM
P: 3
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,
Phys.Org News Partner Science news on Phys.org
World's largest solar boat on Greek prehistoric mission
Google searches hold key to future market crashes
Mineral magic? Common mineral capable of making and breaking bonds
phinds
#2
Nov19-12, 12:47 PM
PF Gold
phinds's Avatar
P: 6,115
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.
bennyboy123
#3
Nov19-12, 01:06 PM
P: 3
basically i just want to know should a loop be used and how is the value stored thanks

jim mcnamara
#4
Nov19-12, 01:23 PM
Sci Advisor
PF Gold
P: 1,381
Little man program

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.
phinds
#5
Nov19-12, 01:45 PM
PF Gold
phinds's Avatar
P: 6,115
Also, post your work here in the forum, not in a PM to me.
jtbell
#6
Nov19-12, 05:39 PM
Mentor
jtbell's Avatar
P: 11,621
Quote Quote by phinds View Post
Also, post your work here in the forum, not in a PM to me.
Also, use the appropriate subforum of "Homework & Coursework Questions":

http://www.physicsforums.com/forumdisplay.php?f=158

instead of this one.


Register to reply

Related Discussions
AVLTree program and Binary Tree program help Engineering, Comp Sci, & Technology Homework 0
Simple Java class + driver program help. Program isn't working, but should be. Programming & Computer Science 7
Writing a Linear program as a semi definite program General Math 6
Astro simulation program problem - program bugs? Astronomy & Astrophysics 4