On the exact solutions and numerical simulation of the non-homogeneous Burgers equations