Good day , I am having the error above Declaration of float kilos shadows a parameter , also for hours and average .I thinking its something to do with the naming but how can i fix this at the same time not "change " the meaning of the code
Then you go on to declare variable with the exact same names as the parameters passed into the function:
float kilos, hours, average;
Although I see what you're trying to do, the second line is not needed and actually confuses the compiler. The compiler knows what "kilos, hours and average" are because it saw them in the function definition, so it sets aside memory for them. Then you go one and tell the compiler "Please reserve space for hours, kilos and average". So the compiler gets confused.