A straight wire carrying a current of 10 A

A straight wire carrying a current of 10 A is bent into a semi-circular arc of radius 2.0 cm as shown in the figure. What is the magnetic field at O due to
(i) straight segments (ii) the semi-circular arc?

(i) Magnetic field due to straight segments is

(ii) Magnetic field at centre O due to semi-circular arc
= Magnetic field at centre of circular coil / 2