Question: IN JAVA: The sales is a two dimensional array that has a row for each day. For that day, all the sales transactions made of

IN JAVA:

The sales is a two dimensional array that has a row for each day. For that day, all the sales transactions made of the ACME Stock are recorded as columns. Only a few lines are shown, but hundreds more exist. For example on the first day, stocks sales were made for $50, then another for $40 then another for $54. The last day shown had 2 sales of $80 and $99.

int[][] sales = { {50,40,54 }, {40,60,60,40 39}, {50,60, 88,89}, // many more lines of data go here {80,99 } };

Write code to output, via System.out.println, the following three values:

a. Number of sales where the price was over 80.

b. The highest number of sales transactions recorded in any day. (In the above data, day 2 would be the answer because 5 sales were made).

c. The day with the highest total amount of sales (adding the sale amount for each transaction)

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!