Problem with an electricity / thermodynamics assignment I've been trying to figure this one out for a while on my own, so I'd like to ask for your help if you could offer some.
The task states:

A heater made out of a wire with a diameter $R = 0.2\text{ mm}$, length $4\pi\text{ m}$ and electrical resistivity of $0.5\times 10^{-6}\ \Omega\;\mathrm{m}$ is connected to a voltage source of $220\text{ V}$, sinked in the water.
Which mass of water will it heat up from $20^{\circ}\mathrm{C}$ to $50^{\circ}\mathrm{C}$ in the time of 10 minutes? (C of water = $4200\ \mathrm{J\;kg}/\mathrm{K}$)

I know I have the electrical properties of the wire and the thermodynamic properties of the water, but I don't know how to proceed from there. We've been studying electricity and I am not really aware how I can connect it with thermodynamics?
 A: Find the resistance of the particular wire.  Then calculate the power it uses.  Assume this power is dissipated as heat.  Find how much energy is converted to thermal energy by heat in 10 minutes.  Use the equation Q = mc ΔT to find the mass of the water.
A: find m from this equation,
$$
mC_p\Delta T = \frac{V^2}{R}t
$$
where,$$R=\frac{\rho l}{\pi r^2}$$
A: You may consider this question from perspective of energy view: the electric energy is consumed by the resistor and convert this energy to the thermal energy (the source of heat that heat up the water). So from this point of view, if you can assume the 100% electric energy converting to thermal energy, and usually, this assumption is right for resistors since there is no other kind of energy that electric energy can convert to, since this is not a motor or a light bulb. Thus you will have the following equation:
$Heat = I^2Rt = \frac{U^2}{R}t$
So this amount of heat will be absorbed by water and heat the water up, so 
$Heat = c_{water}\cdot m\cdot \Delta T$
By solving these two equations, you can get the amount of water ($m_{water}$) you need as
$m_{water} = \frac{U^2 t}{R\cdot c\cdot \Delta T}$
where $R$ can be easily calculated as $R=\frac{\rho L}{\pi r^2}$ for this cylindrical resistor.
So the key point to connect the electricity to thermal dynamics is the conservation of energy so that energy has to convert from one form (electric energy in your case) to another form (thermal energy or heat in your case), and little or no energy is converted into other form such as light.
