Consider this figure:
As shown in the figure. The center of the sphere is at $(0,0,-2)$ and the radius of the sphere is $4$. My question is how to calculate the volume of the sphere when $z\geq 0$ (upper half space). How can i apply triple integral on this problem?
My idea is shifting the sphere to above up to $2$. First i need to find the angle between the cone and $xy$ plane. That is: $$\arcsin\left(\frac 12\right) = \frac{\pi}{6}$$ It means the complement of the angle is $\frac{\pi}{3}$ and calculating this integral:
$$\int_0^{\frac{\pi}{3}} \int_0^{2\pi} \int_0^{\frac{\pi}{6}} \rho^2 \sin(\phi) \,\Bbb d\rho\,\Bbb d\theta\, \Bbb d\phi$$
Finally, the volume of the sphere when $z\geq 0$ is that integral minus the volume of the cone. Anyway, do you have the shortest way to solve this problem using triple integral that requires one step only? (Mine is 2 steps, calculate the integral and the cone)

You can do it with cylindrical coordinates. Note that\begin{align}x^2+y^2+(z+2)^2\leqslant16&\iff\rho^2+z^2+4z\leqslant12\\&\iff\rho^2\leqslant12-4z-z^2.\end{align}So, compute$$\int_0^{2\pi}\int_0^2\int_0^\sqrt{12-4z-z^2}\rho\,\mathrm d\rho\,\mathrm dz\,\mathrm d\theta.$$You will get $\frac{40\pi}3$.