|
From: Scott <fre...@ve...> - 2005-10-31 02:56:57
|
Should of mentioned
I used 3500 pounds (weight)
12.8 seconds (ET)
Should give me 330 (Power)
However power is giving me 1.38
Power =3D Weight/ET/pow(time,3);
The formula is: hp =3D weight / (ET / 5.825)3*
So what stupid thing am i doing wrong?
Cheers
Scott.
#include <stdio.h>
#include <math.h>
#define time 5.825
/*The formula is: hp =3D weight / (ET / 5.825)3*/
main()
{
float Weight, ET, Power;
printf("Enter the weight in pounds : ");
scanf("%f",&Weight);
printf("Enter the ET in Seconds : ");
scanf("%f",&ET);
Power =3D Weight/ET/pow(time,3);
printf("Power EST is %3.2f",Power);
}
|