Replacing a car engine is a significant decision that can extend the life of your vehicle but comes with considerable costs.