subject

Compute the acceleration of gravity for a given distance from the earth's center, distcenter, assigning the result to accelgravity. the expression for the acceleration of gravity is: (g * m) / (d2), where g is the gravitational constant 6.673 x 10-11, m is the mass of the earth 5.98 x 1024 (in kg) and d is the distance in meters from the earth's center (stored in variable distcenter).sample program: #include int main(void) { const double g = 6.673e-11; const double m = 5.98e24; double accelgravity = 0.0; double distcenter = 0.0; distcenter = 6.38e6; printf("accelgravity: %lf\n", accelgravity); return 0;

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 19:40
Use a physical stopwatch to record the length of time it takes to run the program. calculate the difference obtained by calls to the method system.currenttimemillis() just before the start of the algorithm and just after the end of the algorithm. calculate the difference obtained by calls to the method system.currenttimemillis() at the start of the program and at the end of the program so that the elapsed time includes the display of the result. use the value returned by the method system.currenttimemillis() just after the end of the algorithm as the elapsed time.
Answers: 3
You know the right answer?
Compute the acceleration of gravity for a given distance from the earth's center, distcenter, assign...
Questions
question
Biology, 20.09.2020 17:01
question
Mathematics, 20.09.2020 17:01
question
Advanced Placement (AP), 20.09.2020 17:01
Questions on the website: 13722363