Question: 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

Write a program that will display all the medals(gold, silver, bronze) won by the 7 seven countries (Canada, 

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 Country Canada China Germany Gold Silver 1 1 HO 0 OHO 0 1 Bronze 1101 Total 2 2 1

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!