Flow Chart help plz

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Oct 2004
Posts: 1
Reputation: Klarson is an unknown quantity at this point 
Solved Threads: 0
Klarson Klarson is offline Offline
Newbie Poster

PLZ help am on line hopein for assistance

 
0
  #1
Oct 27th, 2004
I need to creat a flow chart for my programing logic class that will read in a list of values that are entered by the user. The user will enter N to quit entering values, once all the values have been entered the program will print out the total of all the values, the average of all the values, the lowest value, and the highest value.
I have a start and am useing a module to make the flow chart but am stuck on the input of the values... how do u allow the user to input as many values as they want?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 716
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Flow Chart help plz

 
0
  #2
Oct 28th, 2004
>how do u allow the user to input as many values as they want?
You can use a sentinel value that, when read, will terminate the input loop. This sentinel must be a value that is not within the valid range, or all input must be taken as string data and then parsed. For your flowchart, it's enough to simply say "while not end-of-file" and leave the definition of end-of-file to specific implementations.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC