Three Cash Register Programs (Ruby)