Question: Task # 1 2 - D Arrays ( this program is in our book / slides ) A . Write a program that will display
Task # D Arrays this program is in our bookslides
A Write a program that will display all the medalsgold silver, bronze won by the seven countries
Canada, China, Germany, Korea, Japan, Russia, United States at the Olympics.
B Have your program tally how many total medals each country won.
Write a method called totalMedals that carries out this function. Your method should take in two parameters,
the array and the row.
Note:
You will need a D array called medals of size to represent how many medals were
won by each country. You will also need a onedimensional array of Strings called countries
to hold all the names of the seven countries.
Program Run
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
