Question: C PROGRAMMING Create a program that reads the number of competitors, names and times on different skating trips from the terminal. The program calculates the
C PROGRAMMING
Create a program that reads the number of competitors, names and times on different skating trips from the terminal. The program calculates the total points of the competitors, sorts the competitors and prints the results according to the common points. The printout should be formatted as follows: 1. Jack Smith 162,133 2. Slash Great 164.220 3. Jason Nice 165,000 ... 12. Roland Mcdonald 211,597 Implement the program using tables and sorting generated from records. In skating, points are calculated as follows (fewer points are better): at 500 meters the score is equal to time (eg 38.68 seconds -> 38.680 points), at 1500 meters the time converted into seconds is divided by three, at 5000 meters ten (eg 6.52.24 (6 minutes 52.24 seconds) -> 41,224 points) and 10,000 meters at 20. Times are given in hundredths of a second and scores to the nearest thousandth of a point.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
