Question: You are to write an Array toolbox using Java. All the methods should be implemented in your program, dont use any method from Java APIs.

You are to write an Array toolbox using Java. All the methods should be implemented in your program, dont use any method from Java APIs. program will have a main menu, where the user can select which function he/she will like to run. The program will have two main classes:

1- Array_1: which is a one dimension array. This class will have the following methods a. Construct an array (with a specific size) b. Double the size of an existing array c. Initialize an array based on its size by reading its elements from user d. Add two arrays of the same size, the result will be stored in a third array e. Get the sum of all elements of an array f. Find the maximum, minimum and the average of all elements in the array. g. Find a specific element in an array. h. Sort an array (ascending order) i. Print the array elements

2- Array_2: which is a two-dimension array. This class will have the following methods: a. Construct an array (with a specific size (number of rows and Columns)) b. Initialize an array by reading input from user. c. Get the sum of all elements of an array d. Find the maximum, minimum and the average of all elements in the array. e. Find a specific element in an array. f. Print the array elements

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!