A basic object-oriented Java implementation of a calculator