Question: Can you indicate what will go in the command window and what will go in the script window. Thanks Write a script named compute gravitational
Write a script named compute gravitational force.m that computes the force of gravity between two objects given their masses and the distance between them. a. Newton's law of universal gravitation states the force of gravity between two objects is proportional to the product of the masses, and inversely proportional to the square of the distance between them: F m1m2 where G Nm 6.674x10 is the gravitational constant kg2 b. Assume 1 pound on Earth is the same as 4.4537 Newtons of force on Earth. c. The script should assume that variables mass1,mass2, and distance already exist in the workspace. That is, this script does not prompt the user for input. d. The script should store the results of the computations in the variables gravitational ForceNewtons, gravitational Forcelbs. e. Your script might be 5 lines of code, not counting comments Your script must be commented, including help comments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
