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]
# 1
Crosspost!
PhHeina at 2007-7-8 22:08:55 > top of Java-index,Java Essentials,New To Java...
# 2

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

bellyrippera at 2007-7-8 22:08:55 > top of Java-index,Java Essentials,New To Java...
# 3

> 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

kajbja at 2007-7-8 22:08:55 > top of Java-index,Java Essentials,New To Java...
# 4
Deleted - post well answered before I could get there :pMessage was edited by: Dross
Drossa at 2007-7-8 22:08:55 > top of Java-index,Java Essentials,New To Java...