Given. $f(x)=2(x+2)/c$ on $1\lt x\lt2$, and $0$ elsewhere.
Find. (a) $c$; (b) $E[X]$; (c) $\mathrm{Var}(X)$.
Approach. A valid pdf must be non-negative and integrate to 1 over its support; solve the normalization condition for $c$, then integrate $xf(x)$ and $x^2f(x)$ over $(1,2)$ for the moments.
(a) Normalization. On $(1,2)$, $2(x+2)>0$ for all $x$, so non-negativity requires only $c>0$. Setting the integral to 1: $$\int_1^2\frac{2(x+2)}{c}\,dx=1\ \Longrightarrow\ \int_1^2 2(x+2)\,dx=c$$ $$\int_1^2 2(x+2)\,dx=\Big[x^2+4x\Big]_1^2=(4+8)-(1+4)=12-5=7\ \Longrightarrow\ \boxed{c=7}$$
(b) Mean. With $c=7$, $f(x)=\tfrac{2}{7}(x+2)$: $$E[X]=\int_1^2 x\cdot\frac{2(x+2)}{7}\,dx=\frac{2}{7}\int_1^2(x^2+2x)\,dx=\frac{2}{7}\left[\frac{x^3}{3}+x^2\right]_1^2$$ The bracket is $\left(\tfrac83+4\right)-\left(\tfrac13+1\right)=\tfrac73+3=\tfrac{16}{3}$, so $$E[X]=\frac27\cdot\frac{16}{3}=\boxed{\frac{32}{21}=1.5238}$$
(c) Variance. $$E[X^2]=\int_1^2 x^2\cdot\frac{2(x+2)}{7}\,dx=\frac27\int_1^2(x^3+2x^2)\,dx=\frac27\left[\frac{x^4}{4}+\frac{2x^3}{3}\right]_1^2$$ The bracket is $\left(4+\tfrac{16}{3}\right)-\left(\tfrac14+\tfrac23\right)=\tfrac{28}{3}-\tfrac{11}{12}=\tfrac{101}{12}$, so $E[X^2]=\tfrac27\cdot\tfrac{101}{12}=\tfrac{101}{42}=2.4048$. $$\mathrm{Var}(X)=E[X^2]-\big(E[X]\big)^2=\frac{101}{42}-\left(\frac{32}{21}\right)^2=\boxed{\frac{73}{882}=0.0828}$$