Page 1 of 1

Description: This programming assignment requires you to write a C program that determines the final score for each ska

Posted: Sat May 14, 2022 4:38 pm
by answerhappygod
Description: This programming assignment
requires you to write a C program that determines the final score
for each skateboarder during one round of competition. Five
judges provide initial scores for each skateboarder, with the
lowest and highest scores discarded. The remaining three
scores are averaged to determine the final score for the
skateboarder in that round. The name and the final score of
the skateboarder should be displayed.
Instructions:
Part 1. The input data is in an input
file named “scores.txt”. The data is structured as follows:
The number of skateboarders included in the file is
unknown. Develop your program
incrementally: Start by constructing a very
small data file with only one skateboarder’s data. Do not add
more detail until your program can successfully read and print out
these values in order. Then, add the data for more
competitors and print those out. Finally, start adding the
code to determine the minimum and maximum scores to eliminate for
each skateboarder and test your code. Finally, add the code to
compute the average the remaining three scores for each skateboard
and display the average as well the skateboarder’s name.
Part 2. Testing: Test your program
using several different input file versions as listed below, and
include screenshots of the results:
To submit: