Happy Birthday

An example to show off functions, and incorporate the use of file reading and string formatting.

Refactoring "Happy Birthday to you!" into a function

Singing Happy Birthday to Multiple Friends

Instead…

Singing to multiple friends using parameters

Improving a little more by introducing a loop and a list of names

Singing Happy Birthday to Thousands of Friends

This will be done by reading a census data file to be a source of names.

Testing

Workspace