(a) The field of a dipole along its axis is given by Eq. 30-29: $$ B =\dfrac{μ_0}{2\pi}\,\dfrac{\mu}{z^3}$$, where μ is the dipole moment and z is the distance from the dipole. Thus,
$$B=\dfrac{(4\pi \times 10^{-7}\,T.m/A)(1.5 \times 10^{-23} \,J/T)}{2\pi(10 \times 10^{-9}\,m)}=3.0 \times 10^{-6}\,T$$
(b) The energy of a magnetic dipole $$\vec μ$$ in a magnetic field $$\vec B$$ is given by
$$U=-\vec \mu.\vec B=-\mu\cos \phi$$
where $$φ$$ is the angle between the dipole moment and the field. The energy required to turn it end-for-end (from $$φ = 0°$$ to $$φ = 180°$$) is
$$ΔU=2\mu B=2(1.5 \times 10^{-23}\,J/T)(3.0 \times 10^{-6}T)=9.0 \times 10^{-29}\,J=5.6 \times 10^{-10}\,eV$$
The mean kinetic energy of translation at room temperature is about $$0.04\, eV$$. Thus, if dipole-dipole interactions were responsible for aligning dipoles, collisions would easily randomize the directions of the moments and they would not remain aligned.