One problem. scanf("%d",&kilowatt);
kilowatt isn't an integer. Change the format specifier to what you'd use for a float.
Is this right? (kilowatt-15)*20+(10)+compute_tax(total);
Haven't looked at it, just seems odd that you're taking 15 from kW.
Is this right? totalwtax=total+tax;
Should it be * not +?