The programs written for simulating the locus on a plane screen for various cases are given below.
Also check the images which are the result of running these programs.
Note: These images are different from those used for the experiment. Observe that all loci are either first degree curves (lines) or second degree curves (conics) as mentioned in the article.