Write a netbeans program that: 1. Creates an array (Nums) which can hold 10double values. 2. Fill the array with different random numbers from 1 to 100. 3. Print the values in the array on the screen. 4. Calculate the sum of all values in the array, and display the sum.5. Calculate the average of all values in the array, and display the average.6. Search to find the largest value in the array, and display that value.7. Search to find the smallest value in the array, and display that value.8. Prompt the user for an integer. Search through the array, and if the item is present, give the index number where it is located. If the value is not in the array, display a single message saying so.
Write a netbeans program that: 1. Creates an array (Nums) which can hold 10double values. 2. Fill the array with different random numbers from 1 to 100. 3. Print the values in the array on the screen. 4. Calculate the sum of all values in the array, and display the sum.5. Calculate the average of all values in the array, and display the average.6. Search to find the largest value in the array, and display that value.7. Search to find the smallest value in the array, and display that value.8. Prompt the user for an integer. Search through the array, and if the item is present, give the index number where it is located. If the value is not in the array, display a single message saying so.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images