Programming Principles I (MEM 111)

Undergraduate course, Cyprus University of Technology, Department of Mechanical Engineering and Materials Science and Engineering, 2021

The course aims at introducing students to the programming principles that are essential for the solution of numerical problems. By making use of the FORTRAN 77/90/95 programming language and suitable operating environments (e.g. Force 2.0, Linux etc) the following topics are covered: Algorithms and programs. Pseudocode and flowcharts. High level languages and the compilation process. Introduction to FORTRAN (basic program structure, compiling and error handling). Arithmetic (numerical operators, order of execution, accuracy of calculations and types of variables). Input and output statements. The format statement. Internal and external functions. Control statements and loops .Arrays for Vectors and Matrices. Multidimensional arrays. Input and output of arrays. Arithmetic statement functions. Function Subprograms and subroutine subprograms. File handling. Double precision numbers. Complex numbers. Character and logical data .The course is accompanied by laboratory sessions where programming is practised through applications on simple engineering problems.