Introduction to Scientific & Engineering Computing F Programing Language BIL 106E

Dr. Hüseyin TOROS

toros@itu.edu.tr, http://www.huseyintoros.com

Program yazmayı öğrenmek istiyorsanız, sunumlardaki örnekleri asla kopyalamayınız.

(yazarken yapacağınız her bir hata sizin daha iyi programlamayı öğrenmenize vesile olacaktır.)

Hatta önce defterinize sonra bilgisayara yazınız.


Week

Subject

Further Details

1

Introduction  & First steps

History (Computers, FORTRAN etc.), algorithms

2

Introduction to Fortran Programming

Introduction to Fortran Programming (Problems, Analysis, Writing codes, compiling)

3

Basic concepts

Programming steps, basic concepts, running a program, errors, testing

4

Basic Fortran

Data types, constants, variables, functions, operations, assignment, I/O, programming style

5

Controlling the flow of Your Program

Logical expressions, if, if-else-if, case constructs, Logical data types

6

Repeating parts of your program

Do loops

7

More Control Over Input/Output

Formatted Output/Input, write/read statements, introduction to files

8

 

MIDTERM EXAM I

9

Building blocks

Programs and modules, procedures, subprograms

10

Using Files To Preserve Data (Visualization)

Files and records, Formatted/Unformatted and End File Records

11

Arrays

1-D and multi-D arrays, compile time vs. run time arrays, array processing, etc.

12

Practice(Examplesformatrix.ppt)

13

Practice (c1,c1,c2,c3,c4,c6,c9)

Practice

14

Compiled Chapter Numerical methods & Array processing- matrix manipulation 

Derived types and structures, complex data type, character data type. Numerical calculations, precision, rounding, data fitting, iterations. Matrices, multidimensional arrays, I/O, assignments

 

Practice (bil106_ozet.ppt)

Practice

 

FORTRAN 77 and GrADS Workshop

 



Useful Pages:

About Course

Please read course policy, F Compiler: Read this first

win95nt.exe (3.4Mb),

Installed F ….

Some Free Fortran Compilers

Intel Fortran Handbook

gfortran notes

vi editor notes

Text book: Programming in F by T. M. R. Ellis, Ivor R. Philips

Some problems

Write a program to calculate ave, min, max of each day, month and year using sicakliklar.dat. - Write a program with a subprograms to calculate final grade of students and order the students list from min to max using veri.dat. .

Write a program to read nem.txt file (ist_number, year, month,day,data) and write its monthly average to a nem.dat file like ist_number,year,averages from Jan to Dec.

Examples of reading and writing from files

Homework 1

Homework 2

http://atlas.cc.itu.edu.tr/~F90/mainindex.html

http://www.fortran.com/

http://www.pcc.qub.ac.uk/tec/courses/f90/ohp/f90-ohp.html