Question
Given GM and radius r of Earth, take an array arr and return a new array where each item has corresponding key orbitalPeriod and its value pair. The value should be rounded to the nearest number.
References
- https://www.toppr.com/guides/physics-formulas/orbital-velocity-formula/
- https://en.wikipedia.org/wiki/Orbital_period
Examples
orbitalPeriod([{name : "sputnik", avgAlt : 35873.5553 …