// Method to print entire name of athelete concatenating first name and last name public string PrintName(Athlete athlete) { string name = athlete.FirstName + " " + athlete.LastName; return(name); }
// Method to print a lap time from the list of laps for a given index public string PrintTimes(Athlete athlete, int number) { string printedTime = athlete.Laps.ElementAt(number).ToString(); return(printedTime); }