Calculate a golf handicap in several different programming languages