We will do Example 9.8, Page 548.
Download and open the following JMP table:

Go to the Analyze menu, select Fit Y by X, and fill the resulting dialog box as follows:

Click OK. The following output results.



Compare the Pearson Chi Square with that on Page 565 of the textbook.
We can also obtain the expected cell count and the contribution
of each cell to the Chi Square statistics.
Go to the red triangle menu next
to Contingency Table and make sure that only Expected
and Cell Chi Square are selected:

One gets:

Compare this results with those on Page 565 of your textbook.