Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

java

Name: Anonymous 2007-04-02 21:47 ID:lENHJj++

i have to create a loop, in the loop i have to take the input values (from keyboard) and then output min/max and average of the values entered. I have no problem with the average, but the only way i can find how to figure the min/max is through a text file example, which doesnt help me when it has to be through keyboard. help pls
8)

Name: Anonymous 2007-04-02 22:35 ID:PYB0/I0s

Dude, don't forget that you'll have to parse the keyboard input and convert it from an unsigned integer stream to ASCII characters (you should be very familiar with ASCII character codes), then you'll have to format it for printing to standard out, then you can perform operations on them (after casting them to long double ints), then print them to standard out as a binary stream and th

OH WAIT. Find out how many values you need to average, then store that many values in an array of that size and iterate over the array and find out that way. Also, you should maybe RTFT before you come here for help. We are the destroyers of the ignorant.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List