Screenshots of example programs below.  Here is a link to text of the output.

and Screenshots with output