> i am able to do the calculate on an separate source code to see it works,
So why didn't you post this code as well?
> else if(weight >= 25000)
> input1 = 5.50;
You put the code you have here.
But calculateCharge() calls these functions again, prompting you for the same responses.
weight = setValidWeight();
type = setValidType();
age = setValidAge();
printf("\n\nThe type is %.2f\n",type);
printf("The age is %.2f\n",age);
printf("The Weight is %.2f Grams\n",weight);
calculateCharge( weight, type, age );