Exact multiplicity and numerical computation of solutions for two classes of non-autonomous problems with concave–convex nonlinearities