Introduction Dr. Entesar Ganash. 1.Fundamentals of computer programming Central Processor Unit Main Memory Backing Store OutputInput 1.1 What is a computer?

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
Advertisements

Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
4/23/2015Engineering Problem Solving with C++ second edition, J. ingber 1 Engineering Problem Solving with C++, Etter/Ingber Chapter 1.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Overview of Programming and Problem Solving ROBERT REAVES.
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
COSC 120 Computer Programming
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
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.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Introduction to Computers
16 March, 2000 CS1001 Lecture 1 Introduction - Syllabus History of Computers Computer Components.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
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.
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
Computers & Logic An Overview. Hardware Hardware is the equipment, or the devices, associated with a computer. For a computer to be useful, however, it.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
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.
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Introduction to Programming Using C Introduction to Computer Programming.
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.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Tolo-e-aftab higher education 1 th semester Bcs 1/2/1392 MINISTRY OF HIGHER EDUCATION.
Internal Lab Registeration labreg/lab/signup.aspxhttp:// labreg/lab/signup.aspx
Computer Basic Vocabulary
Computing Systems & Programming ECE Fundamental Concepts Chapter 1 Engineering Problem Solving.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Chapter 1 Introduction 2nd Semester H
BASIC PROGRAMMING C SCP1103 (02)
Engineering Problem Solving With C An Object Based Approach
BASIC PROGRAMMING C SCP1103 (02)
Overview of Computers and Programming Chapter 1
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Computer Science I CSC 135.
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.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Introduction Dr. Entesar Ganash

1.Fundamentals of computer programming Central Processor Unit Main Memory Backing Store OutputInput 1.1 What is a computer?

Main Memory (Random Access memory (RAM): a set of device in which information ( program instruction or data ) may be store. Central Processor unit (CPU): performs the processes and consists of a control unit and arithmetic unit. Out put device: allows user to get information such as a display screen and printer Input device: allows user to put information such as a keyboard Backing store (Disc drive): magnetic media used by all computers to allow programs and data to be stored in a permanent fashion in the all computer system, such as hard or floppy discs.

1.2 A Computer System Hardware is the physical medium Such as keyboard, circuit boards and processors. Software could be computer programs Such as a Fortran program, an operating system and a compiler.

1.3 Computer Programs Computers deal with a binary digit (or bit). Bit is the basic unit of information in a computer. It has 0 or 1 value or ( off or on), for example is called 4 in binary system (HOW?). Each place is known as a bit. A byte is the amount of computer memory required for one character and 1 byte= 8 bits BUT decimal system is one hundred. A programming language is the particular set of rules for coding the instructions to a computer. There are many different languages as Fortran, Basic, C, C++, Ada, Pascal and so on. These are known “high level” languages because a method of programming allowed a user to write programs without requires knowledge of computer details itself. Program name.EXE  refers to the execution of program

File is a single unit of program or data. each programming language has a very specific Syntax, for example File name.For File name.F90 File name.Bas File name.Cpp As the computers just understand a binary digits, An executable program which runs on CPU must still be represent by this digits. So, the high level program is complied (i.e, translated) by using a compiler that is special part of software. The compilers understand other programs as input and produce a binary executable object file as output. So, object file has the language which is understood by computer

What are general steps to solve any computational problem? Problem Statement: Understanding this can be made the Execution and improvement much easy. Solution Algorithm: How will the problem be solved? Execution: Breaking the algorithm into small parts. This can be managed the problem and made its solution easy, then putting all the parts together to solve the main problem. confirmation: Checking the execution solves the main problem.

What is FORTRAN? Fortran has been abbreviated to FOR mula TRANslation. It was the first “high level” programming language. Often Scientists and engineers have used it. In late 1953, John Backus proposed The idea of Fortran In 1966 the first standard for a programming language: Fortran 66 In 1978: A new standard, Fortran 77 In 1991: Fortran 90 came out Then Fortran 95/2003/2008 NOTE: in each new revision the basic language does not change. But improvement and some new features are added.

Why learn FORTRAN? Fortran is vey useful for scientific computing as it has more intrinsic mathematical functions and multitalented array features such as functions on vectors, matrices and higher dimensional array. Fortran is extensively used programming language in physics science therefore, all physics student should have at least a basic information of it.

Overview in FORTRAN Start  programs  Plato IDE  File  New  Free Format Fortran File  Open

FORTRAN Toolbar

1. Each student will make a new folder on the Desktop of computer and call it as your name. 2. Inside this folder you will make another new folder and call it as lab number, for example lab 1, lab 2 and so on 3. File  Save as  chose Desktop on the left  your folder name  lab NO folder  file name  Save NOTE : In step 3:you can save your file in any place but it is very important to know the path of your file (where is the file) you will see the file name( Example.f95 ) on Title bar FORTRAN Toolbar

1. Write your own code 2. File  Save very important after any change in your code Example.f95* before save Example.f95 and after save is changed 3. Build  Build  compile  start Run

Compiling i.e, translating. Linking i.e, connect all required files together to solve a problem The path direction.EXE This is step Build  Build

Compile i.e., we translate to the computer language and check errors This is step Build  compile

Start Run i.e., Make all required work and the results will be given. Press ENTER key to close the black window. In out side we found some fiels as File name.f95 File name.obj File name application = File name.EXE This is step Build  start run

References Ellis, T.M.R., 1990, Fortran 77 Programming with an introduction to Fortran 90 standard (2nd Ed.), Addison.Wesley Publishing Company CH1 Hahn, B.D., 1994, Fortran 90 For Scientists and Engineers, Elsevier Fortran 90 Course Nantes, 1997, University of Liverpool, AC Mrshall with help from JS Morgan & JL Schonfelder Brief Introduction to the Fortran 90 programming language, Fall2013,, Boston University, Anders W. Sandvik, Department of Physics Fortran 90/95 and ComputationalPhysics, University of Iceland, Jens Hjörleifur Bárðarson MITOPEN COURSEWARE computational-methods-of-scientific-programming-fall-2011/lecture-notes/