Question: Program specification Note: This homework is a development from previous homework. The addition to the assignment is printed in red. If a satellite is orbiting


Program specification Note: This homework is a development from previous homework. The addition to the assignment is printed in red. If a satellite is orbiting around the earth with a distance of h, calculate its orbit circumference, tangential velocity, centripetal acceleration, and the percent difference of the centripetal acceleration with the gravitational acceleration on the earth surface. In addition, also calculate the volume of the earth. Objectives To calculate the following equations with given input values and print the result on the screen in precision stated on each. The result of calculation is also printed in two ways (explained in the Output section) = 1. Orbit circumference S(printed in 3 decimal places, in kilometers) S = 27(R+h) 2. Tangential velocity Vt (printed in 3 decimal places, in meters per second) GM Vt = (R+h) 3. Centripetal acceleration ac (printed in 2 decimal places, in meters per second squared) ac = 012 (R+h) = 4. Percent difference between the centripetal acceleration and gravitational acceleration (printed in 2 decimal places, in percent. For table display print the symbol '%') Percent difference lac-gl x 100% (actg) 5. Volume of the earth (printed in scientific notation, in 3 decimal places, in meters) Volume = (43) #R? Input = Given values of G, M, Rg and h: h (satellite distance) is 220 km G (gravitational constant) is 6.67259x10-11 m3kg-15-2 (gravitational constant) is 3.141593 Input Given values of G, M, R,g and h: h (satellite distance) is 220 km G(gravitational constant) is 6.67259x10-11 m3kg-15-2 a (gravitational constant) is 3.141593 g (gravitational acceleration) 9.80665 ms -2 Earth's mass (M) is 5.972x1024 kg Earth's radius (R) is 6378 km Note: All input values should be in Standard International Units. Any values that is not in SI should be converted before Output Print the satellite distance in kilometers, no decimal places. Print the result in units and precisions required. Print the result again in table display as shown in the figure below. Printed result on the screen. The screen output as follows: $ ./hw2.exe satelite distance : 220 km The circumference of the orbit is 41456.461 km The tangential speed is 7771.430 meters per second The centripetal acceleration is 9.15 meters per second squared The acceleration percent difference is 6.89 percent The volume of the Earth is 1.087e+21 cubic meters PROPERTIES VALUE orbit circumference Tangential speed centripetal acc. percent diff. Earth volume 41456.461 km 7771.430 m/s 9.15 m/s^2 6.89 % 1.087e+21 m^3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
