Page 1 of 1

In C++ program make flow chart from the following steps The flowchart must have a start and an end. All decision points

Posted: Sun May 15, 2022 12:44 pm
by answerhappygod
In C++ program make flow chart from the following steps The
flowchart must have a start and
an end. All decision points should be represented as a diamond.
1 We get the input file and store it to variable fileInput
2. We create a structure with team name and score in it
3. We create a two-dimensional array [Teams]with type struct and
have the first column store winning team. name and score, the rows
can store the losing ones
4. We use a while loop on the number of rows until there are no
more values to take
a. There will be a counter for words and letters to make
sure that we have the correct rows and columns
b. The while loop checks each character and if it is a
number it goes back and stores the string and puts in into
Teams[counterWin][counterLose].name()
c. Then it goes back to the index and checks until string,
then gets between initial index and current index - 1 and gets that
value, storing it in Teams[counterWin][counterLose].score()
d. repeat the same stuff for losing team by switching to
checking for letters and then finally numbers
5. Create all the fun functions - Compute the average winning
team’s score, Compute the average losing team’s score, Compute the
maximum score (highest score from any team in any Super Bowl),
Compute the minimum score (lowest score from any team in any Super
Bowl) using stored data
6. Find and cout the other values which are listed on the project
pdf