Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started