@ -387,4 +387,11 @@ double force(double m, double a)
double work(double a, double d,double m)
{
return (m * a) * d;
}
double power(double a, double m, double d, double t)
double result;
result = ((m * a) * d) / t;
printf("%f", result);
return result;
@ -70,5 +70,6 @@ double velocity(double v0, double a, double t);
double position(double x0, double v0, double a, double t);
double force(double m, double a);
double work(double a, double d,double m) ;
double power(double a, double m, double d, double t);
#endif
@ -319,4 +319,14 @@ int main()
m=getValue('M');
d=getValue('D');
work(a, d, m);
printf("Gib die Beschleunigung a ein: ");
a=getValue('A');
printf("Gib die Masse m ein: ");
printf("Gib die Strecke d ein: ");
printf("Gib die Zeit t ein: ");
t=getValue('T');
power(a,m,d,t);