Question: Attractive Force Being interested in aerospace engineering, you start taking a couple of courses on astrophysics. For one of these courses you are studying the

Attractive Force Being interested in aerospace engineering, you start taking a couple of courses on astrophysics. For one of these courses you are studying the gravitational constant G (6.6741011 m3kg1s2) which helps calculate the attractive force between two objects. You want to compare the attractive force that the Earth would feel if the Moon and some other planets were closer or further away than what they currently are. Write a program that asks the user for the mass of the main object and the mass of two satellites to compare, then creates a .csv file containing the attractive force generated at different distances. Your program should: Ask the user for the mass of the main object in kg Ask the user for the masses of two satellites to compare, also in kg Use the colon operator (:) to generate a distance vector with distances ranging from 200x106 meters to 100x107 meters in 10x106 meter intervals Tip: you can use scientific notation in MATLAB by substituting x10 with e. For example, instead of typing 200x106, type 200e6 Calculate the attraction force between the main object and the first satellite Force1=G*MainMass*SatelliteMass1Distance2 Calculate the attraction force between the main object and the

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 Physics Questions!