Coding sample of a calculator