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

MadLibs

Mad Libs is a phrase template word game where a player asks others for a list of words to substitute for blanks in a story, often comical or nonsensical, and which will be read aloud later. We are going to make a little Mad Libs.

Look at the following example:

image

We need to ask the player for the following words in English:

So for these examples, our program returns:

Whether you write computer programs to solve problems or just for fun, it is very important that you ALWAYS TEST your code for bugs.

Try other inputs and try to come up with a funny phrase.

This TILE contains the message that testing is important.