In the following cases, find the coordinates of the foot of the perpendicular drawn from the origin.
(a) (b)
(c) (d)