Question: I need help making this function called get_ranking. The comments above it is the explanation I get. I also have a completed function for validating
I need help making this function called "get_ranking." The comments above it is the explanation I get. I also have a completed function for validating the time but I am not sure if they need to be applied to this function. Basically, the is_valid_time function reads the time and returns if it is valid or not (true or false boolean function).

I have been given this completed function as well:

All data is read from csv files that look like this: (assuming the csv file is formatted correctly)

I am not really sure where to start. I understand I will have to use arrays and nested loops but that's about it.
// // Name: get_ranking Il PreCondition: just the time array is passed in, and has valid data // Post Condition: after a very ineffiect nested loop to determine the placements // and places the ranks in a new array. That new array is returned //------ void get_ranking (const float *timeArray, unsigned int *rankArray) 1 { // Name: get_runner data // PreCondition: the prepped parallel arrays, and a legit filename is pass // Post.Condition: all arrays contain data from the cav file given void get_runner_data( const std::string file, float timeArray, atd::string * countryArray unsigned into numberArray, atd::string *lastnam Array) DE 1+ (file.size()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
