Step 1: Understanding the Concept
Separate: \(\dfrac{dy}{y+1}=-\dfrac{\cos x}{2+\sin x}\,dx\).
Step 2: Integrate
\(\ln|y+1|=-\ln(2+\sin x)+\ln C\), so \((y+1)(2+\sin x)=C\).
Step 3: Use the condition
At \(x=0,\ y=1\): \(2\times2=4=C\).
Step 4: Calculation
At \(x=\dfrac{\pi}{2}\): \((y+1)\cdot3=4\), so \(y=\dfrac{4}{3}-1=\dfrac{1}{3}\), option (D).
Final Answer:
The value of \(y\left(\dfrac{\pi}{2}\right)\) is \(\dfrac{1}{3}\).
\[ \boxed{\text{(D) }\dfrac{1}{3}} \]