Calculate the pH of a 0.1 M solution of acetic acid (CH3COOH) given that the dissociation constant (Ka) of acetic acid is \( 1.8 \times 10^{-5} \).
Hint:
Use the equation for the dissociation of acetic acid and the expression for calculating pH from the concentration of hydrogen ions.