Computers and Technology

Compute the acceleration of gravity for a given distance from the earth's center, distcenter, assigning the result to accelgravity. the expression for the acceleration of gravity is: (g * m) / (d2), where g is the gravitational constant 6.673 x 10-11, m is the mass of the earth 5.98 x 1024 (in kg) and d is the distance in meters from the earth's center (stored in variable distcenter).sample program: #include int main(void) { const double g = 6.673e-11; const double m = 5.98e24; double accelgravity = 0.0; double distcenter = 0.0; distcenter = 6.38e6; printf("accelgravity: %lf\n", accelgravity); return 0;

answer
Answers: 2

Similar questions

Do you know the correct answer?
Compute the acceleration of gravity for a given distance from the earth's center, distcenter, assign...

Questions in other subjects:

Konu
Biology, 26.08.2020 21:01