Implement pp6calculator Exercise 3 solution

Provide interface to allow user to select one of the four arithmetic
operations and then input two integers. Apply the operation to the
numbers and report the result to stdout.

Check input for errors at all stages, and report these to stderr before
exiting with a failure.