Hi,
you declare and init those variables:

double trans = 0;
double elec = 0;
double food = 0;
But you never assign the values that your methods return, i.e. you pass three 0.0 into...