An Overview

All the necessary study material for b-tech students.

What we have to offer you.

Codes,Syllabus,Study material,Lab manuals,Assignments and many more . . .

Surfing becomes easy.

You can have any material from our website and post your valuable comments for further improvement.

Get the latest techno news

Get yourself updated with this fast changing dynamic world and all the changes in b-tech pattern.

All the best resources for you.

We have done our level best to provide you with the best of the degree and thus this site is devoted to b-tech exclusively.

Showing posts with label Fortran. Show all posts
Showing posts with label Fortran. Show all posts

25 December 2011

A program in FORTRAN to calculate the velocity and height of a projectile

Given its initial height, initial velocity, and constant acceleration. Variables used are:
HGT0: initial height
HGT: height at any time
VELC0: initial vertical velocity
VELC: vertical velocity at any time
ACCL: vertical acceleration
TIME: time elapsed since projectile was launched

Input: none
Output: VELC, HGT
REAL HGT0, HGT, VELC0, VELC, ACCL, TIME
ACCL = -9.807
HGT0 = 100.0
VELC0 = 90.0
TIME = 4.3
HGT = 0.5*ACCL*TIME**2+VELC0*TIME+HGT0
VELC=ACCL*TIME+VELC0
PRINT*, ‘AT TIME’, TIME, ‘THE VERTICAL VELOCITY IS’, VELC
PRINT*, ‘AND THE HEIGHT IS’, HGT
END