Little man program


by bennyboy123
Tags: program
bennyboy123
bennyboy123 is offline
#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
Lemurs match scent of a friend to sound of her voice
Repeated self-healing now possible in composite materials
'Heartbleed' fix may slow Web performance
phinds
phinds is offline
#2
Nov19-12, 12:47 PM
PF Gold
phinds's Avatar
P: 5,674
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
bennyboy123 is offline
#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
jim mcnamara is offline
#4
Nov19-12, 01:23 PM
Sci Advisor
PF Gold
P: 1,353

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
phinds is offline
#5
Nov19-12, 01:45 PM
PF Gold
phinds's Avatar
P: 5,674
Also, post your work here in the forum, not in a PM to me.
jtbell
jtbell is offline
#6
Nov19-12, 05:39 PM
Mentor
jtbell's Avatar
P: 11,216
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? Astrophysics 4