Question
Code in C please 1) Consider a satellite that is in a low orbit about the Earth at a given altitude in km above Earth's
Code in C please
1) Consider a satellite that is in a low orbit about the Earth at a given altitude in km above Earth's surface. Write a program that takes input from the user for the altitude of the satellite and calculates the orbital speed of this satellite. The orbital speed may have decimal values that should be rounded up using the ceiling. The output should be a meaningful sentence. You need to use functions for the calculation when using the equation. Use the information given below. The formula is: velocity = (gravitational constant * total mass / orbit radius) v = (G * M / r) Important information: Gravitational constant G = 6.673 * 10 -11 Nm/Kg Mass of earth M = 5.98 x 10 24 kg Radius r = Radius of earth + altitude provided by the user Radius of earth = 6.37 x 10 6 m . A sample of input and output: Orbital speed Calculator Input: Enter the altitude of the Satellite in km: 220 Output: The orbital speed of the satellite is 7782 m/s
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