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

LinkedIN Community

Join our LinkedIN Community.

Determine phase of life

Write a program that reads an age, and finds out if someone is in their babyhood, childhood, adolescence, initial adulthood, mature adulthood, or old age. Use the following approximate definitions:

Run tests and ensure that each of the possible outputs has occurred at least once.

Add minimal line saying the should test such that each possible
output has occurred.