Question: Create a Java program that meets all below criteria Task The executive team of ABC Electronics would like compare the profits of its stores in
Create a Java program that meets all below criteria
Task
The executive team of ABC Electronics would like compare the
profits of its stores in each location. The following data shows the amount of profit for all of the stores in each location.
Location Profit
Denver $10,500,000.00
Boulder $14,900,000.00
Aurora $18,000,000.00
Durango $9,000,000.00
Loveland $23,800,000.00
Greeley $7,600,000.00
Littleton $8,000,000.00
Longmont $116,500,000.00
Aspen $4,000,000.00
Colorado Springs $6,500,000.00
The below information is mandatory in the given organization/order as well:
1. Make a backup copy of the original arrays.
2. Display the original data set, just as shown above.
3. The average profit for ABC Electronics.
4. The location with the highest profit.
5. A list of all locations with profit greater than or equal to the average. >=
6. The locations and their profit listed in descending order in regards to profit.
7. Make a horizontal graph displaying the performance of each store.
Java Program Requirements
(a) Design a class called AbcElectronics that accepts two arrays - one containing the names of the
Location/cities i.e Boulder, and the other containing the profit amounts i.e 14,900,00.00
Write separate methods for each of the six activities mentioned in the list of requirements.
(b) Design a test class called TestAbcElectronics that creates a store object using the arrays as
arguments to its constructor. Call the respective methods to carry out the required activities. Createthe arrays in the test class by declaration & assignment.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
