Question: Question provide methods to manipulate and retrieve information from this array. Requirements: 1 . Class Declaration: - Declare a class named ArrayManipulator. - The class

Question
provide methods to manipulate and retrieve information from this array.
Requirements:
1. Class Declaration:
- Declare a class named ArrayManipulator.
- The class should have a private int array called numbers as its member.
2. Constructor:
- The class should include a constructor that accepts an int array which is used to set the numbers data field;
3. Methods:
- getMaximum(): private method to return the maximum value in the array.
- getMinimum(): private method to return the minimum value in the array.
- getAverage(): private method to return the average of the array values.
4. Main Method:
Write a main method to demonstrate the functionalities of ArrayManipulator. This should include:
- Creating and filling an int array: the user should be first asked to enter the array size and then its elements;
- Creating an instance of ArrayManipulator using the previously created array;
- Using the object's methods, print the maximum, minimum, and average values of the array in the following format (user input in bold):
Question provide methods to manipulate and

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 Programming Questions!