Question: Problem 1 A two - dimensional integer array named sales holds the weekly sales for employees in a jewelry store for a year. Implement a

Problem 1 A two-dimensional integer array named sales holds the weekly sales for employees in a jewelry store for a year. Implement a method named salesRange() that returns an array containing three statistical values: 1. the lowest sale amount, 2. the highest sale amount, and 3. a value representing the range of sales held in the array, i.e. the value of the highest sales amount minus the value of the lowest amount . The method takes a two-dimensional array of integers named sales, as a parameter. (For example, if sales holds the values below:
200350400
150375225
the method should return [150,400,250].

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!