Q1: CommissionReport class
JavaAuto is a used car dealership that pays its sales associates by sales commission. Your application will produce a sales commission report as shown in the example screen shots. Your solution will contain three classes. The MyArrays class will contain several static methods for searching, sorting and processing arrays. The CommissionReport class is responsible for calculating and accumulating sales commissions for each associate of JavaAuto and printing a commission report. The CommissionReport demo class will test the use of the other two classes

Part 1: MyArrays class
Create a static method that will sequentially search an array for a matching range value. If a matching range value is found, the element’s index is returned, otherwise a -1 is returned. The method accepts a one-dimensional (1D) integer array and an integer value as arguments.
Create a static method that will perform a binary search on an array for a matching value. If a matching value is found, the element’s index is returned, otherwise a -1 is returned. The method accepts a 1D String array and a String value as arguments.
Create a static method that will do a selection sort on two 1D string arrays (parallel arrays). The method accepts two 1D arrays as arguments and returns no value. Whenever an element of the first array is sorted to a new location, you must make sure its index value is used to move the element of the second array to its corresponding location.
Create a static method that accepts a 1D double array argument and returns the sum of all elements of that array.
Create a static method that accepts a 1D double array argument and returns the highest amount in that array.
Create a static method that accepts a 1D double array argument and returns the average of all amounts in that array.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.