Existence and location of solutions to the Dirichlet problem for a class of nonlinear elliptic equations