Monte Carlo simulation on the resistivity and magnetization in anisotropic layered structure