PDA

View Full Version : Help with Java programming!?


xarnarx
09-29-2010, 02:36 PM
I'm just starting using Java and don't know much at the moment... and I'm having problem solving this week homework... I'm NOT looking for someone here to do it for me, only to get me started...

I'm supposed to write a Java program that reads 2 - 1000 floating point numbers from standard input, writes same numbers in a reverse from standard output, one number each line.
It is also supposed to write the average and the standard deviation...

Every homework assignment this semester have been quit easy but here I'm really stuck...

For the first I'm not sure what floating point numbers are... and if some could help me get started with this Java program I would be one happy man.

(I'm pretty sure though how to find the average and the standard deviation)

Cheers (from Iceland)


Additional Details
Edit:

I'm now getting the idea what a floating point number is, but after I create my main class as usual I'm not sure where to go from there... Can someone help me with the first 3-5 lines and explain them to me, so I can understand better... Sorry for the ignorance :)