Introduction to Scientific & Engineering
Computing F Programing Language BIL 106E
Dr. Hüseyin TOROS
toros at itu edu tr
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
|
Files
processing
|
Files and records, Formatted/Unformatted and End
File Records
|
10
|
Building
blocks
|
Programs and modules, procedures, subprograms
|
11
|
An
Introduction to Arrays
|
An Introduction to arrays
|
12
|
Practice(Examplesformatrix.ppt)
|
1-D
and multi-D arrays, compile time vs. run time arrays, array
processing, etc.
|
13
|
Practice
(c1,c1,c2,c3,c4,c6,c9)
|
Practice
|
14
|
Numerical
methods
|
Numerical calculations, precision, rounding, data
fitting, iterations. Matrices, multidimensional arrays
|
|
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 Comp.
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 calculate Final grade using sinavlar.txt " "
sinavlar.txt.
.." "..
Write a program to calculate every column sum, ave, max and min value of amat.dat matrix data file ( a(4,5)) and write the resul bmat.dat matrix data file "
amat.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
Homework2009
http://web.itu.edu.tr/~F90/mainindex.html
http://www.fortran.com/
http://www.pcc.qub.ac.uk/tec/courses/f90/ohp/f90-ohp.html
|