This demo shows a simple method that draws people with the bottom of their feet at the provided (x, y) position.

private void drawPerson(int x, int y)

Solution

public class DrawPeople extends GraphicsProgram {
    public void run() {
        drawPerson(50150);
        drawPerson(100300);
        drawPerson(500200);
        drawPerson(300250);
        drawPerson(700310);
    }
    private void drawPerson(int xint y) {
        GRect body = new GRect(2080);
        body.setColor(Color.BLACK);
        body.setFilled(true);
        add(bodyx - body.getWidth()/2y - body.getHeight());
        
        GRect arms = new GRect(4040);
        arms.setColor(Color.BLACK);
        arms.setFilled(true);
        add(armsx - arms.getWidth()/2y - 60);
        
        GOval head = new GOval(4040);
        head.setColor(Color.BLUE);
        head.setFilled(true);
        add(headx - 20y - 100);
    }
}
X