Question Details

(Solution Download) 2d array class

Brief item decscription

Instant Solution Download for the question described below


Item details:

Write a class named 2DArrayOperations with the following static methods:

getTotal: method should accept two-dimensional array as uts argument and return the total of all the values in the array. Write overloaded versions of this method that work with int, float, double, and long arrays.

getAverage: accept two-dimensional array as its argument and return the average of all the values in the array. Write overloaded versions of this method that work with int, float, double, and long arrays.

getRowTotal: accept two-dimensional array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The method should return the total of the values in the specified row. Write overloaded versions of this method that work with int, float, double, and long arrays.

getCoulmnTotal: accept two-dimensional array as its first argument and an integer as its second argument. Second argument should be a subscript of a column in the array. The method should return the total of the values in the specified column. Write overloaded versions of this method that work with int, float, double, and long arrays.

getHighestInRow: accept two-dimensional array as its first argument and an integer as its second argument. Second argument should be a subscript of a column in the array. The method should return the total of the values in the specified column. Write overloaded versions of this method that work with int, float, double, and long arrays.

getLowestInRow: accept two-dimensional array as its first argument and an integer as its second argument. Second argument should be a subscript of a column in the array. The method should return the total of the values in the specified column. Write overloaded versions of this method that work with int, float, double, and long arrays.

--Demonstrate the class in a complete program with test data stored in a two-dimensional aray of various data types.

*This is Programming Challenges #12 from Chapter 7 in "Starting out with Java: Early Objects, by Tony Gaddis.

 







About this question:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Oct 24, 2017

PRICE: $15.99

Solution~00017287755480.zip (18.37 KB)

Buy this answer for only: $15.99

Pay using PayPal (No PayPal account Required) or your credit card. All your purchases are securely protected by PayPal.
SiteLock

Need a similar solution fast, written anew from scratch? Place your own custom order

We have top-notch tutors who can help you with your essay at a reasonable cost and then you can simply use that essay as a template to build your own arguments. This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student. New solution orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

Order Now
v>