National Institute of Technology Rourkela

राष्ट्रीय प्रौद्योगिकी संस्थान राउरकेला

ଜାତୀୟ ପ୍ରଯୁକ୍ତି ପ୍ରତିଷ୍ଠାନ ରାଉରକେଲା

An Institute of National Importance

Syllabus

Course Details

Subject {L-T-P / C} : PH4073 : Computer Programming Laboratory { 0-0-3 / 2}

Subject Nature : Practical

Coordinator : Prof. Sanjoy Datta

Syllabus

1. Introduction to basic structure of a Fortran code : variable types, arithmetic operations, READ,
PRINT statements, DO....ENDDO statement, writing a very basic code, compile it , run and print
the output at the terminal. FORMAT, OPEN, WRITE, CLOSE statements.
2. Introduction to 1D and higher dimensional array, ALLOCATABLE array, various kind of array
manipulation. Writing a Fortran code using ALLOCATABLE array.
3. Writing a Fortran code using IF….THEN….ENDIF, IF….THEN….ELSEIF….ENDIF,
WHERE....ELSEWHERE, FORALL statements.
4. Introduction to user defined FUNCTION. Using user defined FUNCTION in a code.
5. Introduction to relational and logical operators. CASE statement. COMPLEX data type in
Fortran.
6. Introduction to SUBROUTINE. Using SUBROUTINE in a code.
7. Introduction to MODULE. Using MODULE in a code.
8. Matrix multiplication, finding inverse of a matrix.
9. Solving quadratic equation.
10. Solving simultaneous linear equations.
11. Least square fitting.

Course Objectives

  • The objective of this laboratory course is to teach the fundamentals of computer programming and develop the required knowledge to solve mathematical and physical problems numerically.

Course Outcomes

1. The students will learn the most commonly used computer programming language to solve mathematical and physical problems. <br />2. Students will learn to use computer memory and space effectively.

Essential Reading

  • Ian D. Chivers and Jane Sleightholme, Introduction to Programming with Fortran, Springer
  • V. Rajaraman, Computer Programming in Fortran 90 and 95, Prentice Hall India Learning Private Limited

Supplementary Reading

  • William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling, Numerical Recipes in FORTRAN 77: Volume 1, Cambridge University Press
  • William H. Press , Saul A. Teukolsky, William T. Vetterling, Brian P. Flannery, Michael Metcalf, Numerical Recipes in Fortran 90: Volume 2, Cambridge University Press