Question: Declare and fill an array with 500 random integers between 1 - 1000. main() should facilitate the run of the program. Enter1. Output all integer

Declare and fill an array with 500 random integers between 1 - 1000.

main() should facilitate the run of the program.

Enter1. Output all integer values

Enter 2. Sum and output all odd numbers.

Enter 3. Sum and output all even numbers.

Enter 4. Output mean average of all the integers in the array.

Enter 5. Output middle value in the array.

Enter 6. Output the first value in the array.

Enter 7. Output the last value in the array.

Enter 8. Output and print sorted list integers to the console and a text file Hard code the bubble sort algorithm. Do not use .sort library call.

Enter 9. Allow the user to input an integer value between 1 - 1000 to search. Hard code and implement the linear search algorithm. Output where in the array the search value exists. Or

output value does not exist if the value is not in the array.

Enter 10. Exit.

In Java please.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!