https://github.com/msh-trojan/java_arrays_4
Write a Java program that does the following: 1- Creates an array of integers with random values between 1 and 1000 (inclusive) and a size of 20. 2- Finds and prints the smallest and biggest values in the array. 3- Calculates and prints the average value of all the elements in the array.
https://github.com/msh-trojan/java_arrays_4
arrays average iteration java loops maximum minimum randomness
Last synced: 6 months ago
JSON representation
Write a Java program that does the following: 1- Creates an array of integers with random values between 1 and 1000 (inclusive) and a size of 20. 2- Finds and prints the smallest and biggest values in the array. 3- Calculates and prints the average value of all the elements in the array.
- Host: GitHub
- URL: https://github.com/msh-trojan/java_arrays_4
- Owner: MSH-trojan
- Created: 2024-05-17T13:42:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-17T21:19:04.000Z (over 1 year ago)
- Last Synced: 2024-05-17T22:27:45.502Z (over 1 year ago)
- Topics: arrays, average, iteration, java, loops, maximum, minimum, randomness
- Language: Java
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Concepts of Java used in this Program:
Loops and iterations
If statements
Random value generating
Arrays