USF help me write this code

0 comments

Write a C# program that performs an analysis of the USF football team’s 2016 season (it’s most successful season on record). To do this, first you need to store the scores of all 13 games during the season into arrays. Use two separate arrays – one with USF’s scores and one with the opponent’s scores. Make sure to maintain the correct order – i.e. the score of the first game should be stored as the first element in both arrays, etc. For example, in the first game, USF beat Towson 56-20. So the first element of the array holding USF’s scores would be 56 and the first element of the array holding the opponent’s scores would be 20. For convenience, you can find all 13 scores here: https://www.sports-reference.com/cfb/schools/south-florida/2016-schedule.html (Links to an external site.)

Using loops and these two arrays as your foundation, output a) the score of all 13 games, including whether USF won or lost each game, b) the average number of points USF scored during the season, and c) the average margin of victory for USF across the entire season.

The output should look very similar to this:

Game 1: USF won 56-20

Game 2: USF won 46-17

Game 3: USF won 45-20

Game 4: USF lost 35-55

…(do this for all 13 games…)

During the season, USF averaged 43.77 points per game

USF’s average margin of victory was 12.15 points

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}