Computer Programming - Key Concepts and Terms Computer Program – A computer program is a set of instructions for computer, arranged in logical order, using.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Computers Are Your Future
Programming Types of Testing.
Chapter 1: Introduction
Programming Creating programs that run on your PC
Chapter3: Language Translation issues
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Computers: Tools for an Information Age
Introduction to a Programming Environment
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 1, Lab.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
PRE-PROGRAMMING PHASE
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
CS102 Introduction to Computer Programming
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
Introducing Java.
Program development & programming languages Chapter 13.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Chapter 1.4 Programming languages Homework Due: Monday, August 11, 2014.
CSC141 Introduction to Computer Programming
Introduction of C++ language. C++ Predecessors Early high level languages or programming languages were written to address a particular kind of computing.
Computer Science 101 Introduction to Programming.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
Programming Lifecycle
© 2006 Pearson Education 1 Obj: cont 1.3 and 1.4, to become familiar with identifiers and to understand how programming languages work HW: p.51 #1.8 –
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Visual C++ Programming: Concepts and Projects
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Object-Oriented Program Development Using Java: A Class-Centered Approach, Enhanced Edition.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Chapter 1 Introduction. Chapter 1 - Introduction 2 The Goal of Chapter 1 Introduce different forms of language translators Give a high level overview.
1 Program Planning and Design Important stages before actual program is written.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Introducing Java Chapter 3 Review. Why Program in Java? Java, is an object-oriented programming language. OOP languages evolved out of the need to better.
Introduction to Computer Programming using Fortran 77.
Chapter 1: Introduction to Computers and Programming.
Programming Languages Concepts Chapter 1: Programming Languages Concepts Lecture # 4.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
BlueJ X ICSE Syllabus. Board Pattern THEORY (100 marks) PRACTICAL (100 marks) PROJECT (50 marks) ASSIGNMENTS (50 marks)
Software Engineering Algorithms, Compilers, & Lifecycle.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Programming Language Basics. What is a Programming Language? “A computer, human-created language used to write instructions for a computer.” “An artificial.
3/5/2002e-business and Information Systems1 Introduction Computer System Hardware Software HW Kernel/OS API Application Programs SW.
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
Programming Languages and Data Organization
Programming Languages
Lecture 1 Introduction Richard Gesick.
CSCI-235 Micro-Computer Applications
Computer Programming.
Lecture 1: Introduction to JAVA
Programming Concepts and Languages
Chapter 4 Computer Software.
Developing Applications
Problem Solving Techniques
High Level Programming Languages
Introduction CSC 111.
Programming Language Basics
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
ICT Programming Lesson 1:
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Presentation transcript:

Computer Programming - Key Concepts and Terms Computer Program – A computer program is a set of instructions for computer, arranged in logical order, using a programming language, for doing something useful. High Level Languages - These are programming languages that are Application/ Usage oriented. This means there are languages that are suitable for a particular class of applications. Some of the High Level Languages available are FORTRAN, BASIC, COBOL, Pascal, C, C++, Java, Python etc. Compiler – This software creates a Machine Language Program using a High Level Language program (FORTRAN). This Machine Language Program, called Executable (.EXE) program, is what actually executes on computer. Compilation - The process of translation of a program from High Level Language to Machine Language is called as Compilation.

Computer Programming - Key Concepts and Terms contd. Executable Statements – These are instructions for Computer, used during program execution, for performing specified tasks. Some of the Executable Statements are READ, WRITE, STOP, GOTO, IF etc. Nonexecutable Statements – These are instructions for Compiler, used during Compilation process. Some of the Non Executable Statements are END, REAL, CHARACTER, DIMENSION, FORMAT etc. Types of Errors - There are three types of errors Syntax Errors - These are grammatical errors. These errors are reported by compiler at the time of compilation. A program which has Syntax errors will not compile. Logical Errors - These errors occur due to faulty logic. It is not possible for compiler to point out Logical Errors Runtime Errors - These errors occur at the time of execution of program, for particular data values. Flowchart - This is graphical representation of a program. Flowchart is used as a guideline for programming. Flowchart is language independent; this means that same flowchart can be used for FORTRAN/ C/ BASIC … programs.

FORTRAN Programming – Introduction Installing FORTRAN IDE on your computer This task is required to be performed only if the computer system you will be using does not have FORTRAN IDE (Integrated Development Environment) software installed There are many softwares available for this purpose. I have used Force 2.0 IDE, which is free, and is freely downloadable from the internet. You can visit the Force Project web site at You can download and install the latest version from the site.

Rules for Coding a FORTRAN Program While writing FORTRAN statements we must follow the rules of coding. These rules specify ‘what appears where’. Each line is assumed to contain 80 characters (referred to as Columns). Each line is divided into five distinct zones as described below.

Structure of a FORTRAN Program A FORTRAN program consists of one Main Program and zero or more subprograms. The Main program and the Subprograms are referred to as Program Modules or Program Units. The program execution always begins with the Main Program.

The Main Program begins with Program Header (optional). The Program Header, if any, is followed by required instructions (statements). The END statement is written as the last statement of Main Program. The Main program syntax PROGRAM prgname statements END