I’m trying to figure out the code that allows the user to print a report of a specific course The report should consist of a list of the dogs that ran that particular course. The report should have appropriate headings (including the current date). Each detail line of the report should show the name of the dog, running time, penalty faults, total time and amount of total time over or under the course time. A summary of the winning dog and the dog with the most penalties should be printed at the bottom of the report.
* allow the user to add a dog to the data file. Before the dog is added, the data entered by the user must be validated according to the following rules:
ID of dog: digit, letter, 3 digits
Run time: number > 0
Penalties: number > 0