Welcome
to CENG200:
Introduction to Computers and FORTRAN
Programming
Home Page
CEng 200
Introduction to Computers and FORTRAN Programming
CENG 200 is a service course offered to non-departmental students. The course aims to introduce students with some basic concepts about computers and programming and to give them the ability to solve some simple problems using FORTRAN programming language.
Webpage: http://www.ceng.metu.edu.tr/courses/ceng200/
Textbook: Faruk Tokdemir, Programming with FORTRAN77, Ankara .
Reference: Ibrahim Akman, Ali Yazici, FORTRAN77 Çözümlü Problem Kitabi, Ankara .
Outline:
|
1. Introduction to Computers 1.1. What is a computer? 1.2. An introduction to the
parts of 1.2.2 The software 1.2.3 The firmware 2. Introduction to Programming 2.1 An approach to problem solving 2.2 Algorithmic approaches & flowcharts 2.3 Sample algorithms & flowcharts 3. Elements of FORTRAN 3.1 A brief history of FORTRAN 3.2 Structure of FORTRAN language 3.2.1 STOP statement 3.2.2 END statement 3.2.3 comment statement 3.2.4 Layout of a FORTRAN program 3.3 The elements of FORTRAN language 3.3.1 The character set 3.3.2 The FORTRAN language quantities 3.3.3 Predefined types of FORTRAN variables 3.4 Type & length specifications 3.4.1 Type declaration statements 3.4.2 Lengths 3.4.3 IMPLICIT type & length declarations
|
3.5 FORTRAN assignment statement 3.6 FORTRAN arithmetic expressions 3.7 Related Expressions 3.7.1 Arithmetic Relations 3.8 Logical Expressions 3.9 The order of computations, precedence rule 3.10 Library functions 3.11 Unformatted input and output statements 3.11.1 Unformatted READ statement 3.11.2 Unformatted PRINT statement
4. Control Statements and Loops 4.1 Control statements 4.2 Unconditional GOTO statement 4.3 Computed (or Conditional) GOTO statement 4.4 Logical IF statement 4.5 Arithmetic IF statement 4.6 Block IF statement in FORTRAN 77
MIDTERM EXAM
5. DO Loops 5.1 The DO loop structure 5.2 The DO statement in FORTRAN 77 5.2.1 Execution of Do statement 5.2.2 The CONTINUE statement 5.2.3 Other rules &
warnings on the use of |
6. Arrays and Subscripted Variables 6.1 One dimensional arrays 6.2 Two dimensional arrays 6.3 Subscripted variable names 6.4 The DIMENSION statement 6.5 The array with Type statement 6.6 The array bounds 6.7 Input and output with arrays 6.7.1 I/O with one dimensional arrays 6.7.2 I/O with two dimensional arrays in column order 6.7.3 I/O with two dimensional arrays in row order 6.8 The DATA statement 6.9 Arrays in algorithms
7. Subprograms 7.1 Introduction 7.2 Statement function 7.3 FUNCTION type subprogram 7.3 SUBROUTINE type subprogram 7.4 Adjustable dimensions
|
Course Calendar:
|
Week |
Starting |
Lab |
|
1 |
Feb 16 |
|
|
2 |
Feb 23 |
|
|
3 |
March 2 |
|
|
4 |
March 9 |
|
|
5 |
March 16 |
Algorithms & Flowcharts |
|
6 |
March 23 |
Simple Programming |
|
7 |
March 30 |
GOTO |
|
8 |
Apr 6 |
IF |
|
9 |
Apr 13 |
Lab Midterm |
|
10 |
Apr 20 |
DO loops |
|
11 |
Apr 27 |
Simple One -Dimensional Arrays |
|
12 |
May 4 |
Two-Dimensional Arrays |
|
13 |
May 11 |
Function Type Subprograms |
|
14 |
May 18 |
|
|
15 |
May 25 |
Lab Final |
|
|
|
|
Grading
|
%30 |
Midterm (14 April 2009, 18:00) |
|
%40 |
Final |
|
%25 |
Laboratory (Each lab %0.5, Midterm lab %8, and Final lab %12.5) |
|
%5 |
Attendance, Homework assignments, Quizzes, etc. |
Contact Information:
You can find all information about
the course and the announcements in course web
page:
http://www.ceng.metu.edu.tr/courses/ceng200
For
any questions or problems, please FIRST READ FAQ . If you
can't
find an answer then write to ceng2xx@ceng.metu.edu.tr
Coordinating instructor: Asuman Doğaç
Coordinating
assistant: Levent Bayındır
Laboratory coordinator: Atıl
İşçen