Question: Task # 1 2 - D Arrays ( this program is in our book / slides ) A . Write a program that will display

Task # 12-D Arrays (this program is in our book/slides)
A. Write a program that will display all the medals(gold, silver, bronze) won by the 7 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 2-D array called medals of size [7][3] to represent how many medals were
won by each country. You will also need a one-dimensional array of Strings called countries
to hold all the names of the seven countries.
Program Run
Task # 1 2 - D Arrays ( this program is in our

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