Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create the random integer array in a programmer created class called Random. Each method below will be a member of the class Random. Declare and

Create the random integer array in a "programmer created class" called Random. Each method below will be a member of the class Random.

Declare and fill an array with 500 random integers between 1-1000. A method in the program should perform the task of filling the array.

main(): Method should facilitate the run of the program. There is a menu which operates the program until user decides to exit:

Enter 1. 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 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 a stored list integers to the counsel 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. (The value can appear multiple times in the array) 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions