Home / Expert Answers / Computer Science / i-can-39-t-figure-out-what-i-39-m-doing-wrong-in-this-program-we-are-supposed-to-create-a-chart-as-p-pa874

(Solved): I can't figure out what I'm doing wrong in this program. We are supposed to create a chart as provid ...



I can't figure out what I'm doing wrong in this program. We are supposed to create a chart as provided

Ric-MAC-9 Conference Tid?lvwinks TO?rnamentRir-MAC-9 Conference Tid?lvwinks TournamentBut, I can't seem to figure out what I'm doing wrong. We are using a file called teams.txt as provided:

\( \begin{array}{lll}187 & 162 & 171 \\ 199 & 123 & 175 \\ 151 & 126 & 165 \\ 136 & 121 & 149 \\ 177 & 181 & 187 \\ 173 & 173

This file displays the scores with each column being game 1, game 2, and game 3 scores.

Here is the code I have for this program (that definitely doesn't output the perfect chart!)

Notes: nonethe array of integers that holds the game 3 scores,
an integer that holds the nmber of teams that competed in the tournamentI would appreciate a run through where I went wrong with the code and ways that I can fix it.

The overview of the assignment:

For this assignment, write a program that will process information for the teams that competed in the 2023 Big Mac 9 ConferenThe name of the string arrays and the name of the symbolic constant (to be discussed later) may be changed, but the initial v

Ric-MAC-9 Conference Tid?lvwinks TO?rnament Rir-MAC-9 Conference Tid?lvwinks Tournament Notes: none the array of integers that holds the game 3 scores, an integer that holds the nmber of teams that competed in the tournament turns: nothing tes: none *************************************************************/ For this assignment, write a program that will process information for the teams that competed in the 2023 Big Mac 9 Conference annual Tiddlywinks tournament. The tournament was open to the 9 schools in the Big Mac 9 Conference and possibly 3 at large schools. Each school that participated sent 3 teams to the tournament and each team played 3 games of Tiddlywinks. The information will be needed for later processing, so it will be stored in a set of arrays that will be displayed, sorted, and displayed (again). For the assignment, declare five arrays, each of which will hold a maximum of 36 elements: - one array of strings to hold the school names - one array of strings to hold the team names - one array of integers to hold the scores from game 1 - one array of integers to hold the scores from game 2 - one array of integers to hold the scores from game 3 The two arrays of strings should be declared (and initialized as follows): The name of the string arrays and the name of the symbolic constant (to be discussed later) may be changed, but the initial values MUST remain the same. The five arrays will be parallel arrays. This means that the information for one team can be found in the same "spot" in each array. This also means that any time information is moved in one array the same move must be made to the other arrays in order to maintain data integrity. It is recommended that this program be written in two versions. The first version of the program will read a set of team information (game 1 score, game 2 score, and game 3 score) from standard input (the keyboard), as has been done since the start of the semester. The second version of the program will alter the first version so that the program reads from an input file rather than standard input. The second version is the ONLY one that will be handed in for grading.


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe