Question: Answer in C++ please. ma 2A. [40 points] If you fire a projectile fast enough, the curve of the earth will match the speed at

Answer in C++ please. ma 2A. [40 points] If you fire aAnswer in C++ please.

ma 2A. [40 points] If you fire a projectile fast enough, the curve of the earth will match the speed at which the projective falls. The projectile will then orbit the earth. The speed, in meters/second, necessary to orbit the earth at an altitude h can be calculated by G Me velocity = R+h where: G is the universal gravitation constant, 6.67408 10-11 (written 6.67408e-11 in C++) Kg sec2 Me is the mass of the earth, 5.972 x 1024 Kg R is the radius of the earth, 6.371 x 10 meters h is the height of the orbiting object in meters Write a program that asks the user the altitude of an obit in kilometers and then displays the velocity in meters/second. Note that there are 1000 meters in a kilometer. You will have to convert the input from kilometers to meters. Sample input and output Enter the orbit altitude in Km 225 The orbit speed is 7773.48 m/s 2B [10 points] Most people in America are more familiar with miles than meters. Modify your program to input the altitude in miles and display the result in miles/hour. There are 1.60934 kilometers in a mile and 2.23694 miles/hour in one meter/second. Convert the input from miles to km and the result of the calculation from m/s to mph. Sample input and output Enter the orbit altitude in miles 254 The orbit speed is 17151.5 miles/hour // altitude of the space station

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