Step 1: Rewrite D
$D=\cos^2p+4\sin p(1-\cos p)$, where $1-\cos p\ge0$.
Step 2: Sign
When $\sin p>0$, both terms are non-negative, so $D\ge0$. When $\sin p<0$ the second term is negative and D can drop below 0.
Step 3: Result
The interval where $\sin p>0$ is $(0,\pi)$, option (D).
Final Answer:
The condition holds throughout (0, pi).
\[ \boxed{\text{(D) }(0,\pi)} \]