While replacing an electric dryer can be do-it-yourself easy, professional installation of a water heater can cost as much as or more than the price of the appliance.
Extension: Building a budget for household appliance replacements