I have a program to write for my cs115 class that I have to find a hat size in a function and after I compute it I must return only 4 sizes(x.00,x.25,x.50,x.75) for example if I come up with 6.45 as the size I must round it up to 6.50 or if it is 6.60 then I must round it up to 6.75. here is my function:
float size(float weight,float height)
{
return((weight/height)*2.9);
}
Any help will be greatly appreciated my program is due and this is the only thing of it that I cannot figure out.
Fastlane29