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 where is the velocityspeed in is the orbital radius in km and is the time for one orbit in hours. Note: While NASA uses digits of you should use for this assignment, ie digits only.
Create a program in your source directory src named
Ask the user for an input of and in that order.
The user will provide a placeholder value of for the value they wish to calculate, and values 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 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 or 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
: million km
:
: thousand
Moon
Moon
: thousand km
T: hours
:
International Space Station
:
T: hours
: thousand
Print in the following order:
all measurements that are close:
all objects that have at least match: Earth, Moon, International Space Station
Example IO
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
