The power delivered is equal to the product between the voltage V and the current I:
[tex]P=VI=(16 V)(3.5 A)=56 W[/tex]
This power is delivered for a total time of [tex]t=4h=4 \cdot 3600 s = 14400 s[/tex], so the total energy delivered to the battery is
[tex]E=Pt = (56 W)(14400 s)=806400 J=806.4 kJ[/tex]