The Riccati-Bernoulli Sub-ODE Technique for Solving the Deterministic (Stochastic) Generalized-Zakharov System