Question: lab5.h (below) lab5.dat (below) PROBLEM: This program uses structures and pointers It will receive (via a file) a set of long jump tries for a




lab5.h (below)




lab5.dat (below)
PROBLEM: This program uses structures and pointers It will receive (via a file) a set of long jump tries for a set of jumpers. To cut down on the complexity of this program, we will use a zero for both fouled jumps and passed jumps. We will figure out the best jump for each competitor, the average of the best jumps, and the winning best ump (1) You first need to declare a structure type jumper_t I named my structure jumper_t and its 4 parts are a character array name that is 16 in length, a double array of tries that is N_TRIES in length, a double named best_jump, and a double named deviation na me try 0try 1 try 2 try 3 try 4try 5 best jum deviatiorn Array tries (2) Next you need to declare a structure type stats_t I named my structure stats t and its 2 parts are: variables, both type double, named average of best, winning jump (3) Write the function get_stats. The prototype is: void get stats(jumper t jump list[NCOMPETITORS, /* in & out */ / output */ stats_t *jump_stats); It will now figure the best jump for each jumper, compute the all-over average of all the best jumps, find the winning jump, and each jumper's deviation from the winning jump (4) You will be provided a test driver program that needs very little changing. You will only need to add the two structures and the one function get stats
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
