Step 1: Area of each circular face
Radius \( r = 2\, \text{cm} = 0.02\, \text{m} \)
\[
A = \pi r^2 = \pi \times (0.02)^2 = 1.256 \times 10^{-3}\, \text{m}^2
\]
Step 2: Electric flux through the left and right faces:
Electric field at \( x = -5\, \text{cm} \): \( \vec{E}_1 = -100\, \hat{i} \)
Electric field at \( x = 5\, \text{cm} \): \( \vec{E}_2 = +100\, \hat{i} \)
Flux through left face (inward):
\[
\phi_1 = \vec{E}_1 \cdot \vec{A} = -100 \times A = -100 \times 1.256 \times 10^{-3} = -0.1256\, \text{Nm}^2/\text{C}
\]
Flux through right face (outward):
\[
\phi_2 = \vec{E}_2 \cdot \vec{A} = +100 \times A = +0.1256\, \text{Nm}^2/\text{C}
\]
Step 3: Net outward flux
\[
\phi_{\text{net}} = \phi_2 + \phi_1 = 0.1256 + (-0.1256) = 0
\]
Step 4: Using Gauss's Law to find net charge inside the cylinder:
\[
\phi = \dfrac{q_{\text{in}}}{\varepsilon_0} \Rightarrow q_{\text{in}} = \phi_{\text{net}} \times \varepsilon_0 = 0 \times 8.85 \times 10^{-12} = 0
\]
Final Answers:
(a) Net outward flux = \( 0 \, \text{Nm}^2/\text{C} \)
(b) Net charge inside the cylinder = \( 0 \, \text{C} \)