write a java application to print the number of staff members at three different stores in three different cities using 2D arrays and also didplay the totsl number of staff per city
write a java application to print the number of staff members at three different stores in three different cities using 2D arrays and also didplay the totsl number of staff per city
Here , as per the question we are asked print the number of staff members at three different stores in three different cities using 2D arrays and also display the total number of staff per city. Lets take the name of stores and cities as below.
Three different stores:-
Store 1
Store 2
Store 3
Three different cities :-
City 1
City 2
City 3
------------------------------------------------------------------
Below is 2-D array as an example showing the kind of output needed , all values are assumed. You can take as per your requirement.
Store\City | City 1 | City 2 | City 3 |
Store 1 | 20 | 25 | 15 |
Store 2 | 24 | 30 | 35 |
Store 3 | 46 | 50 | 45 |
Sum of staff members in each city (column wise sum) | 90 | 105 | 95 |
Step by step
Solved in 4 steps with 3 images