Java Bootcamp – Workbooks and Challenges
)}

Global Superstore 3

Prerequisite: You wrote the solution for part 2.

Goal: Present the data to the user.

Task 1


Remove this line of code:

 System.out.println("Access Denied. We apologize for the inconvenience. Have a good day " + name + ".");

After the user enters their information, the main thread must wait for the worker threads to die. Then, you can present the user with sales data:

System.out.println("\nThank you " + <name> + ". The average sales for Global Superstore are:\n"); System.out.println("Average Furniture Sales: " + <furniture sales>); System.out.println("Average Technology Sales: " + <tech sales>); System.out.println("Average Office Supplies Sales: " + <office sales>); System.out.println("Total Average: " + <total>);

Your output should appear as follows:

>>: Please enter your name to access the Global Superstore dataset: Rayan

>>: Thank you Rayan. The average sales for Global Superstore are:

>>: Average Furniture Sales: 9799.21280813723
>>: Average Technology Sales: 9854.096986549781
>>: Average Office Supplies Sales: 9540.319577001303
>>: Total Average: 9651.778039610392

Good Luck!


Feedback Summary
4.8
39 students
5

92%
4

3%
3

0%
2

0%
1

5%
Written Reviews
There are no written reviews yet.