Step 1: Express expectation value.
\[
\langle O \rangle = \langle \psi | \hat{O} | \psi \rangle
\]
Substitute the given \(\psi\):
\[
\psi = \frac{1}{\sqrt{2}}(\psi_1 + i\psi_2)
\]
Step 2: Apply operator.
\[
\hat{O}|\psi\rangle = \frac{1}{\sqrt{2}}(\hat{O}\psi_1 + i\hat{O}\psi_2) = \frac{1}{\sqrt{2}}\left(\psi_2 + \frac{i}{\sqrt{2}}(\psi_1 + \psi_2)\right)
\]
Step 3: Compute inner product.
Using orthonormality:
\[
\langle \psi | \hat{O} | \psi \rangle = \frac{1}{2\sqrt{2}}(1 - i(\sqrt{2} + 1))
\]
Step 4: Conclusion.
Hence, the expectation value is \(\dfrac{1}{2\sqrt{2}} (1 - i(\sqrt{2} + 1))\).

At a particular temperature T, Planck's energy density of black body radiation in terms of frequency is \(\rho_T(\nu) = 8 \times 10^{-18} \text{ J/m}^3 \text{ Hz}^{-1}\) at \(\nu = 3 \times 10^{14}\) Hz. Then Planck's energy density \(\rho_T(\lambda)\) at the corresponding wavelength (\(\lambda\)) has the value \rule{1cm}{0.15mm} \(\times 10^2 \text{ J/m}^4\). (in integer)
[Speed of light \(c = 3 \times 10^8\) m/s]
(Note: The unit for \(\rho_T(\nu)\) in the original problem was given as J/m³, which is dimensionally incorrect for a spectral density. The correct unit J/(m³·Hz) or J·s/m³ is used here for the solution.)