Estb. 1882

University of the Punjab

MATH-405 Fortran Programming

Simple Fortran 90 Programs  Writing a program
 Input statement
 Some FORTRAN 90 program examples
Numeric Constants and Variables
 Constants
 Scalar variables
 Declaring variable names
 Implicit declaration
 Named constants
Arithmetic Expressions
 Arithmetic operators and modes of expressions
 Integer expressions
 Real expressions
 Procedure of operations in expressions
 Assignment statements
 Defining variables
 Mixed mode expressions
 Intrinsic functions
Conditional Statements
 Relational operators
 The block if construct
 Example programs using if structures
Implementing Loops in Programs
 The block do loop
 Count controlled do loop Logical Expressions and More Control Statements
 Logical constants, variables and expressions
 Precedence rules for logical operators
 The case statement
Functions and Subroutines
 Function subprograms
 Syntax rules for function subprograms
 Generic functions  Subroutines
Defining and Manipulating Arrays
 Arrays variables
 Use of multiple subscripts
 Do type notation for input/output statements
 Initializing arrays
 Use of arrays in do loops
 Whole array operations
Elementary Format Specifications
 Format description for numerical data; read statement
 Format description for print statement
 Multi-record formats
 Printing character strings
Credit hours/ Marks:- 3

Reference Books

Download Course-Outline