Goatathalon

Challenge
No

The goatathalon has three events: running, swimming, and pogoing. The winning goat is the one with the lowest total time.

Download this workbook with the data and an MT output area. It looks like this to start:

Start

You can see the data for each goat: name, and times for running, swimming, and pogoing, in minutes. Each time should be a number that is not negative.

Write a program that computes average times for each event, and the average total, for valid records. It should also show the names and times for the winning goat (the one with the lowest total).

Also show the number of valid and invalid records, and the total number of records.

Here's what I got:

Output

Upload your solution to this site, not to Moodle. The usual coding standards apply.

Where referenced