Array and Function
Hi! I'm new in JAVA
Can anyone assist me?
1. How to reads ten numbers (integer) that enter by the user, calculate the average and display it, and finds out how many numbers are above the average also display it.
2. Reads ten integers enter by the user and display it in reverse order.
Really need your assistance!
Thanks and Best Regards.
Waiting for a reply...
[405 byte] By [
Haritha] at [2007-11-26 15:49:18]

Please don't crosspost. This is a very annoying thing.
Things will get easy if you break them in little pieces
Make methods for each of these:
- read numbers input by user and returns them(in an array or a list)
- calculate average of passed numbers
- find which numbers from a passed set of numbers are above a certain number
And so on
Mike
> 1. How to reads ten numbers (integer) that enter by
> the user, calculate the average and display it, and
> finds out how many numbers are above the average also
> display it.
Open your textbook and read about the Scanner class, arrays, for loop and if statements.
> 2. Reads ten integers enter by the user and display
> it in reverse order.
See above.
Kaj