Question: Overview Your first task is to create a program to calculate the properties of motion of a satellite ( this being any celestial body in

Overview
Your first task is to create a program to calculate the properties of motion of a satellite (this being any celestial body in orbit, not just manmade spacecraft). This motion is described by the formula v=2rT, where v is the velocity/speed in kmh,r is the orbital radius in km , and T is the time for one orbit in hours. (Note: While NASA uses 15 digits of , you should use =3.14 for this assignment, i.e.,3 digits only.)
Create a program in your source directory src named
Ask the user for an input of v,r, and T, in that order.
The user will provide a placeholder value of -1 for the value they wish to calculate, and values >0 for the other two. Any input that does not match this format is invalid and should be handled appropriately.
You will calculate the desired value using the formula above and display it rounded to two decimal places. You do not have to round the value stored, just the printf output.
If any of the 3 measurements is close to a known object, print
[measurement] is close to that of [object]
If this is the only matching measurement, print
However, this is likely not [object]
If any 2(or 3) measurements match, print
This object is likely [object]
The following ranges are considered "close" to the three known objects, Earth, Moon, and International Space Station:
Earth
r:148-151 million km
T:8700-8800h
v:100-110 thousand kmh
Moon
Moon
r:360-400 thousand km
T: 624-672 hours
v:3600-3800kmh
International Space Station
r:6700-6900km
T: 1.4-1.6 hours
v:26-30 thousand kmh
Print in the following order:
all measurements that are close: r,T,v
all objects that have at least 1 match: Earth, Moon, International Space Station
Example I/O
Overview Your first task is to create a program

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