97.6k views
5 votes
The radius and mass of the Earth are, r= 6378 x 10³ meters and m1 = 5.9742 x 10²⁴ kg, respectively.

Prompt the user to input his or her mass in kg and then calculate the gravitational force (F) and acceleration due to gravity (g) caused by the gravitational force exerted on him/her by the Earth.
Consider, F=G(m1)(m2)/(r²) and F=mg. Let the universal gravitational constantG= 6.67300 x 10⁻¹¹ (in units of m³.kg⁻¹.s⁻² assuming the MKS [meter-kilogram-second] system). Check that the resulting value of g is close to 9.8ms⁻². [HINT: There are two formulas for F. In one, m2 is the mass in kg of the user. In the other, m is the mass in kg of the user.

2 Answers

5 votes

Answer:

Explanation:

User Vjuliano
by
5.3k points
6 votes

Answer:

The Program is written in C++

#include<iostream>

using namespace std;

int main()

{

//Variable declaration

double m2;

cout<<"Input your mass (in kilogram): ";

cin>>m2;

//Constant declaration and initialisation

double G = 0.00000000006673;

double m1 = 5974200000000000000000000;

double r = 6378000;

double g = 9.8;

//Calculating Gravitational Force

double F = G * m1 * m2 / (r * r);

//Print Gravitational Force

cout<<"Gravitational Force = "<<F;

// Calculating Force exerted on earth

F = m2 * g;

cout<<"Force = "<<F;

//Calculating acceleration due to gravity (g) caused by the

// gravitational force exerted on him/her by the Earth.

g = G * m2 / (r * r);

cout<<"Gravity Exerted on Earth: "<<g;

return 0;

}

//End of Program

//Comments were used to explain some lines of codes

//Program was implemented using C++

Explanation:

User Zach Folwick
by
5.2k points