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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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 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.
Transcribed Image Text: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.
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
Transcribed Image Text: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
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of Parenthesis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education