Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Ch2 of Computer Programming

Chapter 2: Basic Fortran and Data Types
by

Jenmu Wang

on 8 May 2018

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Ch2 of Computer Programming

End
Start
2.1 Basic of Fortran Programs
2.2 Data Types, Constants, and Variables
Data Types
2.3 Arithmetic Operations and Functions
Chapter 2 : Basic Fortran and Data Types
Dr. Jenmu Wang
Computer Programming
Department of Civil Engineering, TKU
Integer
Real
Character
Variables
Constants
Variable Type Declaration
Good Programming Practice
Variable Initialization
Homework # 1-1
1. Transform the following math formulas into a Fortran program. Let the user input a, b and x using keyboard. Your program calculates the three ys and output them on the screen.
2. Calculate the area of a trapezoid by inputting the height and 2 bases of the trapezoid.
Homework #1-2
3. Find the roots of the following equation.
,
Full transcript