This Blog Is Not For Reading

A blog, just like any blog, only more so

Archive for the 'pseudocode' Category

Putting up the Christmas tree

Posted by Bob on 14th December 2008

Christmas Tree

# Program: trimtree
# Purpose: To prepare a Christmas tree before decorating
# Date: before 25 December

repeat until (height == 0)
{
if (wife == “It’s lopsided!”)
{
trim_bottom_branches(leftside)
}

if (wife == “It’s leaning!”)
{
trim_bottom_branches(rightside)
}

if (wife == “It’s bare at the bottom!”)
{
saw_off_base(to branches)
}
}
end loop

Image by Tom Carmony, used under CC

Posted in Christmas, code, pseudocode, tree | 4 Comments »