Introduction to Computer Programming using Fortran 77.

Slides:



Advertisements
Similar presentations
Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Overview of Programming and Problem Solving ROBERT REAVES.
INTRODUCTION OF COMPUTER
CS 111: Introduction to Programming Midterm Exam NAME _________________ UIN __________________ 10/30/08 1.Who is our hero? 2.Why is this person our hero?
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
16/13/2015 3:30 AM6/13/2015 3:30 AM6/13/2015 3:30 AMIntroduction to Software Development What is a computer? A computer system contains: Central Processing.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
CIS105 Chapter 1 Theory Review. Page 2 Hardware and Software are the two major components o any computer system Hardware is the set of physical devices.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Computers & Logic An Overview. Hardware Hardware is the equipment, or the devices, associated with a computer. For a computer to be useful, however, it.
CS102 Introduction to Computer Programming
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 1 st semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Introduction to programming Carl Smith National Certificate Year 2 – Unit 4.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 1 09/04/13. Change Your Password  The command is: passwd In the lab first do : ssh -Y onyx  You will have to see me to change it, if you forget.
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
1 Overview of Programming Principles of Computers.
Chapter 1 An Overview of Computers and Programming Languages.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Introduction to Computer Programming By: Mr. Baha Hanene Chapter 1.
Software Engineering Algorithms, Compilers, & Lifecycle.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
CHAPTER 1 OVERVIEW OF COMPUTER AND PROGRAMMING 1.1 Electronic Computer Then and Now 1.2 Computer Hardware 1.3 Computer Software 1.4 The Software Development.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Chapter 1 Introduction 2nd Semester H
Engineering Problem Solving With C An Object Based Approach
Operating System Interface between a user and the computer hardware
Lecture 1 Introduction Richard Gesick.
CSCI-235 Micro-Computer Applications
Chapter 1: An Overview of Computers and Programming Languages
Lecture 1: Introduction to JAVA
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1. Introduction to Computers and Programming
Java programming lecture one
Chapter 1: An Overview of Computers and Programming Languages
An Introduction to Visual Basic .NET and Program Design
Topics Introduction Hardware and Software How Computers Store Data
Introduction CSC 111.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Understand the interaction between computer hardware and software
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Programming Logic and Design Eighth Edition
Presentation transcript:

Introduction to Computer Programming using Fortran 77

The Computer is a tool vary in size, shape, speed, capacity, and usage fast do only what it is instructed to do

Computer Components

Central Processing Unit ( CPU ) the computer brain and main worker Memory where the computer store needed information Input devices devices to receive input from user ( e.g., keyboard, mouse ) Output devices show results to the user ( e.g., monitor, printer )

What does the Computer Understand ? The computer only understands electrical signals These electrical signals are interpreted as ones and zeros Machine language programs are programs that are written in ones and zeros

High Level Languages High Level Languages that are more sophisticated than machine language easier to write, test, and fix e.g., FORTRAN, PASCAL, C Compi ler a compiler translates a program from a high level language to a machine language

Programs Program a solution to a given problem written in a computer programming language Software the collection of programs that run in a computer and determine the operations that are valid in the computer

FORTRAN Programs All statements have a specific structure Each line ( 80 columns ) Program statements from columns program statements have to be valid FORTRAN statements Statement number from columns Column 6 ( continuation if any ) * or C in column 1 denote a comment line FORTRAN compiler ignores columns

Writing a Program Understand the problem Analyze the problem and break it into smaller pieces Write step by step solution Write the code (the actual program in a computer language) Test that the program works fix errors that you discover during testing

1. Indicate the following statements as either TRUE or FALSE: 1. Syntax errors are detected during compilation. 2. A compiler is a hardware component that translates programs written in a high level language to a machine language. 3. The input unit is the part of the computer that controls all the other parts. 4. The last statement in a FORTRAN program should be the END statement. 5.FORTRAN is a high level language. 6.A comment statement is used for documentation purposes. 7.Dividing by zero will cause a compilation error. 8.If a FORTRAN statement exceeds column 72, then ‘+’ at column # 6 in the next line can be used to continue the statement on that line. 9. A computer is a machine used to solve problems only. 10. A compiler checks the syntax of the program and converts the program into machine language 11. A program is a set of computer instructions. 12. One can use as many ‘STOP’ and ‘END’ statements as he/she wishes in a single program. Exercises

Exercise 2. Which of the following statement(s) is/are correct according to FORTRAN: A. Only column 1 is used for the statement label. B. Column 6 is used for comment. C. Column 1-5 is used for the statement label. D. Column 7 is used for the continuation line. E. Characters C or * in Column 1 is used to comment a line.

3. For each item of list ( A ), choose the correct definition from list ( B ): List AList B Assembler Compiler Software Hardware 1. A machine that converts an assembly language program into machine language. 2. The physical components of a computer. 3. A machine that converts a high level language program into machine language. 4. A fundamental computer component that controls the operations of the other parts of the computer. 5. Programs used to specify the operations in a computer. 6. A fundamental computer component that performs all arithmetic and logic operations. 7. A program that converts an assembly language program into machine language. 8. A program that converts a high level language program into machine language. Exercise

4. For each term in list ( A ), choose the correct definition from list ( B ): List AList B A program A Computer END STOP 1. is a FORTRAN statement that indicates the logical end of the program. 2. is a machine that can solve all problems. 3. translates programs written in an assembly language to machine language. 4. is a machine that uses instructions given by the user to solve a problem. 5. is a sequence of instructions which, when performed, will do a certain task. 6. is a FORTRAN statement that indicates the physical end of a program.