Question: CHALLENGE ACTIVITY 2 . 1 2 . 1 : Acceleration of gravity. Compute the acceleration of gravity for a given distance from the earth's center,

CHALLENGE
ACTIVITY
2.12.1: Acceleration of gravity.
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**Md2, where G is the gravitational constant 6.67310-11,M is the mass of the earth 5.981024(in kg) and d is the distance in meters from the earth's center (stored in variable distcenter). Note: Assume distance is at least the radius of the earth.
See How to Use zyBooks for info on how our automated program grader works.
5462+2.3907756 qri3z7?
import java.util.Scanner;
public class Gravitycalculation {
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
double G=6.673e-11;
double M=5.98e24;
double accelGravity;
double distcenter;
distCenter = scnr. nextDouble(
 CHALLENGE ACTIVITY 2.12.1: Acceleration of gravity. Compute the acceleration of gravity

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!