Code for problem 32A.