A wire bent into a semicircle of radius R forms a closed circuit and carries a current I.
The wire lies in the xy plane, and a uniform magnetic field is directed along positive y
axis. Find the magnitude and direction of the magnetic force acting on the straight
portion of the wire and on the curved portion.