Hi. The problem in your code:


double eTotal += f;

You should remove the 'double' for 'eTotal' as it has already been declared in


double dTotal = 0.0, eTotal = 0.0;