Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

type int. An example of the series of input data in the input file is shown in Figure 1. b) The program must be able

image text in transcribed

image text in transcribed

type int. An example of the series of input data in the input file is shown in Figure 1. b) The program must be able to notify the user if the input file cannot be opened (failed to open) with the proper prompt. The example for user notification where the file fails to open is shown in Figure 2. c) Calculate the total score for each participant. Dr Eiliyah Wong Figure 1: Input file named "input. txt" Sorry, input file does not exist! Press any key to continue... Figure 2: Example user notification in case file fails to open d) Calculate the total score for each team. e) Besides the function main (), the program needs to define three (3) other functions as described in Table 2. Use appropriate argument (if necessary) for each function. f) The program needs to print out the following information. Figure 3 shows the example, run of the successful program. - The team ID. - The participant ID. - The scores for the five events, E1, E2, E3, E4 and E5 for each participant. - The total score for each participant. - The total score for each team. - The winner for individual category (selected based on highest total score that collected by the participants). - The winner for group category (selected based on highest total score that collected by the teams). Press any key to continue.. . Figure 3: Output of the program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions