Add Code to WordPress Head Programmatically

I received a request recently from a client that wanted an easy way to hide content for logged in users via CSS, but they needed it to be done programmatically, and wanted some CSS added to the WordPress header. What they had was a CSS [...]