Plotter

The Plotter executor understands the following four commands:

  1. penDown(), put the pen down;
  2. penUp(), lift the pen;
  3. moveTo(x,y), move to the point (x,y);
  4. move(Vx,Vy), move by the vector (Vx,Vy).
Write programs for Plotter that perform assignments 1, 2, and 3.