Test Informed Learning with Examples

Logo

Repository with assignments using the Test Informed Learning with Examples (TILE) method to integrate testing into existing programming courses for free.

Menu

Reading and filtering names and birth dates from a file

From the Saving names and birth dates to a file exercise, make a program that reads the file "dates.txt" and tells us how many people were born in May. In the example above, there is only one person who was born in May. To test your program well, make sure that you also test it with different files "dates.txt":