1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Vera_Pavlovna [14]
3 years ago
14

Compute the approximate acceleration of gravity for an object above the earth's surface, assigning accel_gravity with the result

. The expression for the acceleration of gravity is: G*M)/(d), where G is the gravitational constant 6.673 x 10-11 M is the mass o the earth 5.98 x 1024 (in kg), and d is the distance in meters from the Earth's center stored in variable dist_center) Sample output with input: 6.3782e6 (100 m above the Earth's surface at the equator) Acceleration of gravity: 9.81 1 G = 6.673e-11 2 M = 5.98e24 3 accel_gravity = 0.0 5 dist_center = float(input()) " Your solution goes here" 10 000 9 print('Acceleration of gravity: {: .2f}'.format(accel_gravity)
Computers and Technology
1 answer:
san4es73 [151]3 years ago
4 0

Answer:

G = 6.673e-11

M = 5.98e24

accel_gravity = 0.0

dist_center = float(input())

accel_gravity = (G * M) / (dist_center * dist_center)

print('Acceleration of gravity: {: .2f}'.format(accel_gravity))

Explanation:

The G, M, and accel_gravity are already initialized

The user is asked to enter the dist_center which is the only missing thing in the formula

In order to calculate the accel_gravity, you just need to put the variables in the formula (Note that the formula is (G*M)/(d^2), not d)

Then, the calculated value of accel_gravity is printed

You might be interested in
Your manager has asked you to write a program that displays the percentage of males and female in your class. The program should
Blababa [14]

<u>Explanation:</u>

The program using <em>python programming language </em>would be:

First, we write the Input prompt.

<u>Input  prompt for the user</u>

number_of_males_in_class = int (input ('Enter the number of males: '))

number_of_females_in_class = int(input('Enter the number of females: '))

Next, we write the Process algorithm.

<u>Process  algorithm</u>

total_number_of_students_in_class = number_of_females_in_class + number_of_males

_in_class

percentage_of_males_in_class = number_of_males_in_class / total_number_of_students

_in_class

percentage_of_females_in_class = number_of_females / total_number_of_students

Finally, the Output process

<u>Output process</u>

print('Total number of males in class =', format(percentage_of_males_in_class, '.0%'))

print('Total number of females =', format(percentage_of_females_in_class, '.0%'))

7 0
3 years ago
What is the correct sequence of the phases in the systems development life cycle?
HACTEHA [7]
1. Requirements gathering/analysis.
2. Design.
3. Development.
4. Testing.
5. Maintenance.
7 0
4 years ago
A database is a collection of integrated and related _____.
ioda
C) files
Because technologys data goes into files
4 0
3 years ago
Read 2 more answers
How do you change your username in this app
Alekssandra [29.7K]
You cant, if you want to change you can create another account :)
6 0
3 years ago
Read 2 more answers
Hey can someone read My I.P address? My teacher want's us to learn port forwarding but I can't find my I.P. because its a school
Alborosie
Obviously you have access to any sort of device. 
click on your internet and click more info: 
your IP address will be stated clearly, for example as 666<span>.666.6.666</span>
7 0
4 years ago
Other questions:
  • Which of the following describes the function of a web browser?
    11·1 answer
  • Whereas enterprise network convergence focuses on the consolidation of traditionally distinct voice, video, and data communicati
    14·1 answer
  • Your IT manager wants you to set up three computers to appear to users as one powerful Windows Server 2016 server. What capabili
    14·1 answer
  • Define a public static method named s2f that takes two String arguments, the name of a file and some text. The method creates th
    7·1 answer
  • Which of the following is a good way to improve your credit score?
    5·1 answer
  • Henry has created a software product that manages a database of company clients. He wants to install the software on a client's
    13·1 answer
  • What is the binary for O?​
    5·2 answers
  • Learning is Fun
    5·1 answer
  • 8. The cell reference for a range of cells that starts in cell A1 and goes over to column G and down to row 10 is, a. A1-G10 b.
    7·1 answer
  • Bunco is a dice throwing game that requires no decisions to be made or skill on the part of the player just luck. In the simples
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!