Question: help coding this using for and while loops You are given a numerical array that contains the number of points the Buckeyes scored in the

help coding this using for and while loops You are given a numerical array that contains the number of points the Buckeyes scored in the2019 Football season in the first row and the number ofpoints their opponents scored in the second row, called points, and a string array that contains each corresponding opponent, called OPP.a. Using a for loop, calculate the margin of victory in each of OSU's2019 games by subtracting the two rows in each column. Store the results in anarray called OSU_margin.NOTE: DO NOT hard-code the length of your array/number of iterations of your loop. Use the length() function to calculate how manyelements are in an array!b. Using the max() function, determine which which team OSU beat by the largest margin. Because the variable opp is in the same order in whichthe games were played, you can assume the indexing will be the same. Save the resultant team name as the variable largest_margin.

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!