proj/proj0/Planet.java
public double calcForceExertedByX(Planet p) {
        double F = this.calcForceExertedBy(p);
        double r = this.calcDistance(p);
        double dx = p.xxPos - this.xxPos;
        return (F * dx) / r;
    }
/** Describe the force exerted in the X directions.
        Args(Planet):
            Planet Object p.
        Returns(double):
            Force exerted in the X direction
    */
Describe the force exerted in the X directions.
Describe the force exerted in the X directions .
public double calcForceExertedByX(Planet p) {
        double F = this.calcForceExertedBy(p);
        double r = this.calcDistance(p);
        double dx = p.xxPos - this.xxPos;
        return (F * dx) / r;
    }
public double calcForceExertedByX ( Planet p ) { double F = this . calcForceExertedBy ( p ) ; double r = this . calcDistance ( p ) ; double dx = p . xxPos - this . xxPos ; return ( F * dx ) / r ; }
Describe the force exerted in the X directions.
Describe the force exerted in the X directions .