For $X$ a path-connected abelian CW complex with finitely many cells in each dimension, and $X_{(p)}$ be the localization of $X$ at prime $p$ (so that $\tilde{H}_*(X_{(p)}) = \tilde{H}_*(X)\otimes \mathbb{Z}_{(p)}$ where $\mathbb{Z}_{(p)}$ means the localization of $\mathbb{Z}$ with $\mathbb{Z}-(p)$), I am trying to prove that $H^*(X_{(p)}; \mathbb{Z}_{(p)}) = H^*(X; \mathbb{Z}) \otimes \mathbb{Z}_{(p)}$ as graded rings.
My idea is to prove: (1): $H^*(X_{(p)}; \mathbb{Z}_{(p)}) = H^*(X; \mathbb{Z}_{(p)})$; (2): $H^*(X; \mathbb{Z}_{(p)}) = H^*(X; \mathbb{Z}) \otimes \mathbb{Z}_{(p)}$. For step (1) I ran into trouble trying to prove the isomorphisms using universal coefficient theorem, where $Ext_{\mathbb{Z}}(\mathbb{Z}_{(p)}; \mathbb{Z}_{(p)})$ needs to be computed. I just want to ask if this idea works and any hints for the details(of either steps) would help.
I am not completely sure if my idea works out, and a more straightforward idea for the proof would certainly help.