Write a program that fills a one-dimensional array with 10 random integers between 1 and 25.
The program should perform the following tasks:
1. Print the contents of the array horizontally.
2. Print the sum of the contents of the array.
3. Print the maximum number in the array.
4. Print the minimum number in the array.
5. Print the average of the numbers stored in the array.
Sample Output:
6 14 9 2 24 12 18 15 21 3
The sum of the numbers is: 124
The maximum of the numbers in the array is: 24
The minimum of the numbers in the array is: 2
The average of the numbers in the array is: 12.4

Edited by bmwwbb54

2 Years
Discussion Span
Last Post by bmwwbb54

You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others here.

There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in helping you cheat or doing your homework for you.

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"

Post what you have done so far and someone will help you from there.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.