Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program using a Matlab script file that calculates the force exerted by one celestial body on another as a function of distance. (Use

Create a program using a Matlab script file that calculates the force exerted by one celestial body on another as a function of distance. (Use Newtons law of universal gravitation, F = Gm1m2/r2, where the gravitational constant, G, is 6.673x10-11 N m2/kg2.) All numerical values should be represented as variables with appropriate names. (Do not do calculations with the literal numbers, but rather define variables and use them in the calculations). The program should prompt a user at the command window for the masses of the two bodies and the range of distances of interest. (Do not expect the user to know matlab syntax like how to define a vector; instead, your program should expect input of only simple scalar values.) The program's output to the command window should be a neat table with distances in column 1 and forces in column 2, along with appropriate user interface messaging. Use the appropriate commands and formatting so that all numbers are printed to 4 significant digits.

Apply your program to find the force the moon exerts on the earth for 10 distances between 3.8x108 m and 4.0x108 m. (The mass of the earth is approximately 6.0x1024 kg and the mass of the moon is approximately 7.4x1022kg.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

Describe the characteristics of a 360-degree performance appraisal.

Answered: 1 week ago

Question

1. Where will you recommend that she hold the focus group?

Answered: 1 week ago

Question

3. What might you have done differently

Answered: 1 week ago