PDA

View Full Version : (Java)Need help with Loops


ineedhelp0
Jul 26, 2015, 11:50 PM
If the user inputs:
John 91 92 93 94 95 96 97 jim 91 92 93 94 95 96 97
The program loops twice to find john and jim's grade in the class but how do I have the loop stop once there is nothing else to compute

CravenMorhead
Jul 27, 2015, 08:04 AM
Define nothing else to compute. How are you inputing the information? Stdin? File? Dialog?

ineedhelp0
Jul 27, 2015, 04:16 PM
I need the program to continue on to the next thing after computring what the user inputed because the amount of people can be unlimited

CravenMorhead
Jul 28, 2015, 07:36 AM
Okay, how is the data being inputed?

IS this a GUI? Command line/console application?

The answers are VASTLY different depending on what you're doing. You should correlate what this assignment is with what is going on in class. Usually the answer is there. If not talk to a TA. I am a gifted programmer but if I have to base a solution on 20 words... not going to happen. Where is the input coming from?