Most graphic programs have the ability to make a square, then define the dimensions for it, they all have very different interfaces for doing this.
Along with that, there is a coordinate system for setting where you want 0,0 to be. And the orientation of the square, or other object you've...