Question: I need help calculating my Holiday Bonus. My code is not giving the right numbers: HERE IS MY CODE package Package; public class HolidayBonus {

I need help calculating my Holiday Bonus. My code is not giving the right numbers:

HERE IS MY CODE package Package;

public class HolidayBonus { public static double[] calculateHolidayBonus(double [][] data, double high, double low, double other) { double[][] holidayBonusArr = new double[data.length][]; for (int i = 0; i

HERE IS THE ASSIGNMENT:

The class HolidayBonus will follow the provided Javadoc and will contain the following methods:

Method calculateHolidayBonus pass in a two-dimensional ragged array of doubles, and the bonus amount for the store with the highest sales in a category, the bonus amount for the store with the lowest sales in a category and bonus amount for all other stores. It will return an array of doubles which represents the holiday bonuses for each of the stores in the district. The first entry in the returned array [0] will represent the holiday bonus for the store at [0] in the two-dimensional ragged array of doubles. You will be using methods from the TwoDimRaggedArrayUtility when needed.

Method calculateTotalHolidayBonus pass in a two-dimensional ragged array of doubles, and the bonus amount for the store with the highest sales in a category, the bonus amount for the store with the lowest sales in a category and bonus amount for all other stores. It will return a double which represents the total of all Holiday Bonuses for the District. You will be using methods from the TwoDimRaggedArrayUtility when needed.

HERE IS HOW IT SHOULD BE: I need help calculating my Holiday Bonus. My code is not giving

HERE IS HOW MINE IS:

the right numbers: HERE IS MY CODE package Package; public class HolidayBonus

HERE ARE THE NUMBERS:

{ public static double[] calculateHolidayBonus(double [][] data, double high, double low, double

District Sales Report Disney World Retail District 5 Sales Report Marvel Total Holiday Bonus 16,000.00 5,000.00 10,000.00 $12,000.00 11,000.00 16,000.00 70,000.00 Books Tsum Tsum Trading Pins Star Wars 21,543.66 $75,324.57 Emporium World Traveler Discovery Trading C Merchant of Venus $22,567.63 Once Upon a Toy Tatooine Traders Total 254,936.69 $84,071 26 156,371.92 193,99745 $255,402.71 224,018.15 $1,168,798.18 28,762.21 535,76242 23,863.66 $54,992.97 36,23764 36,546.57 32,653.46 215,418.09 37,94437 $63,872.39 31,843.86 $26,574.65 S171,247.23 34,557.68 22,563.87 164,93845 $42,657.70 $337,92747 167,360.04 $111,906.90 Highest Sales in Category Lowest Sales in Category Load Sales Data Copy File Exit District Sales Report Disney World Retail District 5 Sales Report Marvel Total Holiday Bonus 16,000.00 5,000.00 10,000.00 $12,000.00 11,000.00 16,000.00 70,000.00 Books Tsum Tsum Trading Pins Star Wars 21,543.66 $75,324.57 Emporium World Traveler Discovery Trading C Merchant of Venus $22,567.63 Once Upon a Toy Tatooine Traders Total 254,936.69 $84,071 26 156,371.92 193,99745 $255,402.71 224,018.15 $1,168,798.18 28,762.21 535,76242 23,863.66 $54,992.97 36,23764 36,546.57 32,653.46 215,418.09 37,94437 $63,872.39 31,843.86 $26,574.65 S171,247.23 34,557.68 22,563.87 164,93845 $42,657.70 $337,92747 167,360.04 $111,906.90 Highest Sales in Category Lowest Sales in Category Load Sales Data Copy File Exit

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