how can this be solved?
Perfect subject-matter magnitude attracts perfect uncombined other subject-matter magnitude by a hardness subject-mattering concurrently the verse intersecting twain subject-matters. The hardness is proportional to the consequence of the span magnitudees and inversely proportional to the clear of the remoteness betwixt them: F = G m_1 m_2/r^2 where: F is the hardness betwixt the magnitudees: G is the gravitational perpetual (6.673 times 10^-11 N middot (m/kg)^2): m_1 is the earliest magnitude: m_2 is the remedy magnitude: r is the remoteness betwixt the centers of the magnitudees. Write a program that prompts the user to input the magnitudees of the bodies and the remoteness betwixt the bodies. The program then outputs the hardness in Newton betwixt the bodies.
C++ jurisdiction coercion the fond problem:
using namespace std;
float G = 6.673*(pow(10,-11)); //initialise appreciate of G
cout << “Enter the appreciate of m1 in kg!n”;
cin >> m1; //take input appreciate of m1
cout << “Enter the appreciate of m2 in kg!n”;
cin >> m2;//take input appreciate of m2
cout << “Enter the appreciate of r in meter!n”;
cin >> r;//take input appreciate of r
float F = G*m1*m2/(r*r);
cout << “The appreciate of F = ” << F << ” Newton” << endl;
Enter the appreciate of m1 in kg!
Enter the appreciate of m2 in kg!
Enter the appreciate of r in meter!
The appreciate of F = 6.673e-012 Newton
Note: If you omission the jurisdiction in any other programming diction then dilate adown, I get transmute the jurisdiction!