Sunteți pe pagina 1din 1

PROGRAM vel_escape

!
! purpose
!
to calculate the escape velocity from the surface of planet or earth
!
! Date
Programmer
Descript
ion of change
! ========
===================
=======================
=====
! 6/2/2015
Hesller Huller
original
code
!
IMPLICIT NONE
! list of variables
REAL :: M
anet or moon [kg]
REAL :: R
planet [m]
REAL :: v_esc
]
! list of constants
REAL :: G = 6.673E-11
* kg^-2]

! mass of the pl
! radius of the
! velocity of scape [m/s

! gravitational constant [N*m^-2

! INTRODUCTION
WRITE (*,*) 'this program will calculate the velocity'
WRITE (*,*) 'of scape from the surface of a planet of moon.'
! some examples for the user take values
WRITE (*,*) 'You can choose from table below'
WRITE (*,*) '---------------------------------------------'
WRITE (*,*) ' Body
Mass(kg)
)'
WRITE (*,*) ' Earth
6.0E24
WRITE (*,*) ' Moon
7.4E22
WRITE (*,*) ' Ceres
8.7E20
WRITE (*,*) ' Jupiter
1.9E27
7.1E7'
WRITE (*,*) '----------------------------------------------'
! get the mass and radius
WRITE (*,*) 'Enter with the mass(kg):'
READ (*,*) M
WRITE (*,*) 'Enter with the radius(m):'
READ (*,*) R
! calculating the velocity of scape
v_esc = sqrt((2*G*M)/R)
! output the result
WRITE (*,*) 'The velocity of scape is: ', v_esc,'m/s'
END PROGRAM vel_escape

Radius(m
6.4E6'
1.7E6'
4.7E5'

S-ar putea să vă placă și