USE C++ programming language Besides the main() function, the program needs to define three other functions as described in Table . Use appropriate argument (if necessary) for each function The program needs to print out the following information. Figure shows the example, run
USE C++
Besides the main() function, the program needs to define three other functions as described in Table . Use appropriate argument (if necessary) for each function
The program needs to print out the following information. Figure shows the example, run of the successful program.
i. The team ID.
ii. The participant ID.
iii. The scores for the five events, E1, E2, E3, E4 and E5 for each participant.
iv. The total score for each participant.
v. The total score for each team.
vi. The winner for individual category (selected based on the highest total score that collected by the participants).
vii. The winner for group category (selected based on the highest total score that collected by the teams).
viii. Display all of these output in an output file name “output.txt” as well.
![Function
Description
displayLine ()
To display lines using the 52 characters of -'. The function
should use loop to display the line.
findIndWinner ()
To determine the winner for individual category (selected
based on the highest total score that collected by the
participants). The function should accept the array for a
total score of each participant as one of its argument.
findTeamWinner () To determine the winner of group category (selected based
on the highest total score that collected by the teams). The
function should accept the array for a total score of each
team as one of its argument.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fade481c3-3658-4d04-8895-84b7d0faa675%2F8fe34231-19be-4b27-93e8-c7793edb0023%2Fuw3r3w_processed.png&w=3840&q=75)
![Id
El
E2
E3
E4
E5
Total
TEAM 1
1001
10
10
6.
39
1002
8
7
10
7
41
1003
7
10
10
10
43
1004
10
10
8
7
7
42
TOTAL
165
ТЕАМ 2
2001
7
10
10
44
2002
10
8
7
10
43
2003
8
8
10
40
2004
8
8
8
39
ТОTAL
166
ТЕАМ З
3001
10
10
10
10
8
49
3002
8
7
8
39
3003
7
8
10
40
3004
7
36
ТОTAL
164
Winner for Individual Category: 3001 (Team 3)
Winner for Group Category: Team 2 (Score = 166)
Press any key to continue .
- co](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fade481c3-3658-4d04-8895-84b7d0faa675%2F8fe34231-19be-4b27-93e8-c7793edb0023%2Fwbdi24_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)