Structured programming 1 st stage By Heba.A Raheem Assist Lecturer College of Sciences/Computer Sciences Department.

Slides:



Advertisements
Similar presentations
EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Advertisements

Overview of Programming and Problem Solving ROBERT REAVES.
Introduction to Programming Lecture 2. Today’s Lecture Software Categories Software Categories System Software System Software Application Software Application.
Introduction to Computers and Programming - Class 1 1 Introduction to Computers and Programming Professor Avi Rosenfeld.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Java Environment (CSS444)
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What Is a Computer?
August 29, 2005ICP: Chapter 0: Introduction to Computers and Computing 1 Introduction or Computer Programming Chapter 0: Introduction to Computers and.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
C programming language Computer Programming Language 計算機程式設計 Chapter 1 Overview 台大電機系 吳安宇教授 Sept
CHAPTER 1 GC 101 Introduction to computers and programs.
COMPUTER PROGRAMMING. Introduction to C++ History Merges notions from Smalltalk and notions from C The class concept was borrowed from Simular67 Developed.
CS 115 Chapter 1 Overview of Programming and Problem Solving.
CS102 Introduction to Computer Programming
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What Is a Computer? 1.3Computer Organization 1.4Evolution.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Lecture 1 Introduction to computers & VB.Net. What is a Computer? Examples? A device capable of  Performing computation  Making logical decisions 
Chapter 1 Introduction to Computers, the Internet and the World Wide Web.
Spring 2005, Gülcihan Özdemir Dağ BIL104E: Introduction to Scientific and Engineering Computing, Spring Outline 1.1Introduction 1.2What Is a Computer?
History of C and C++ C++ evolved from C ANSI C C++ “spruces up” C
CHAPTER 1 GC 101 Introduction to computers and programs.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
1 Overview of Programming and Problem Solving Chapter 1.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introduction to Computers Outline 1.1Introduction.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 Overview 1.1 Computer Systems 1.2 Programming and Problem Solving.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 Introduction to Computers, the Internet and.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Programming Fundamentals1 Chapter 1 INTRODUCTION TO COMPUTER AND PROGRAMMING.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
 2000 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Typical C++ Environment and Library Introduction Speaker : Wei-Lu Lin Advisor : Ku-Yaw Chang 2012/10/14.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
CS-303 Introduction to Programming
1 Introduction to Computers, the Internet and World Wide Web.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to C.
Introduction to C Programming Language. History of C  C was evolved by Dennis Ritchie at AT&T Bell Laboratories in early of 1970s  Successor of: ALGOL.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Chapter 1 An Overview of Computers and Programming Languages.
برمجه حاسبات 2 أ. بيان غزلان الفصل الدراسي هـ.
Chapter 1 Introduction 2nd Semester H
Introduction to Computers, the Internet and the Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
© by Pearson Education, Inc. All Rights Reserved.
Computer Programming (CS-161)
Introduction to Programming
Chapter 1 – Introduction to Computers and C++ Programming
Intro to Programming Week # 1 Hardware / Software Lecture # 2
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Chapter 1 – Introduction to Computers, the Internet, and the Web
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, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
Chapter 1 – Introduction to Computers and C++ Programming
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Introduction to Computer Programming
Introduction to Computer Programming
Chapter 1 – Introduction to Computers and C++ Programming
Introduction to Computers, Internet and the World Wide Web
Chapter 1 – Introduction to Computers and C++ Programming
Presentation transcript:

Structured programming 1 st stage By Heba.A Raheem Assist Lecturer College of Sciences/Computer Sciences Department

Lecture 1 – Introduction to Computers and C Programming hardware components 1. Introduction:

cont Computer is a device capable of performing computations and making logical decisions at speeds millions and even billions of times faster than human beings. Computers process data under the control of sets of instructions called computer programs. Programming is the process of writing instructions for a computer in a certain order to solve a problem. The computer programs that run on a computer are referred to as software (SW). While the hard component of it is called hardware (HW). Developing new software requires written lists of instructions for a computer to execute. Programmers rarely write in the language directly understood by a computer.

2. Short History of languages: The following is a short history, just for given a general view of how languages are arrived:  1954: Fortran.  1957: Cobol.  1958: Algol (Base for Simula).  1958: Lisp.  1961: B1000.  1962: Sketchpad.  1964: Basic.  1967: Simula67.  1968: FLEX.  1970: Pascal (From Algol).  1971: C (From a language called B).  1972: Smalltalk72 (Based on Simula67 and Lisp).  1976: Smalltalk76.  1979: ADA (From Pascal).  1980: C with classes (experimental version).  1983: C++ (by Bjarne Stroustrup).  1986: Objective-C (from C and Smalltalk).  1986: Eiffel (from Simula).  1991: Sather (From Eiffel).  1991: Java.  2000: C#.

3. Computer Organization Six logical units in every computer: 1.Input unit Obtains information from input devices (keyboard, mouse) 2.Output unit Outputs information (to screen, to printer, to control other devices) 3.Memory unit Rapid access, low capacity, stores input information 4.Arithmetic and logic unit (ALU) Performs arithmetic calculations and logic decisions 5.Central processing unit (CPU) Supervises and coordinates the other sections of the computer 6.Secondary storage unit Cheap, long-term, high-capacity storage Stores inactive programs

4. What is C C is a programming language developed at AT & T’s Bell Laboratories of USA in It was designed and written by a man named Dennis Ritchie. In the late seventies C began to replace the more familiar languages of that time like PL/I, ALGOL, etc. No one pushed C. It wasn’t made the ‘official’ Bell Labs language. Thus, without any advertisement C’s reputation spread and its pool of users grew. Ritchie seems to have been rather surprised that so many programmers preferred C to older languages like FORTRAN or PL/I, or the newer ones like Pascal and APL. But, that's what happened. Possibly why C seems so popular is because it is reliable, simple and easy to use.[

5. Structured Programming Structured programming – Disciplined approach to writing programs – Clear, easy to test and debug and easy to modify Multitasking – Specifying that many activities run in parallel

6. Basics of a Typical C Program Development Environment Phases of C Programs: 1.Edit 2.Preprocess 3.Compile 4.Link 5.Load 6.Execute Preprocessor program processes the code. Loader puts program in memory. CPU takes each instruction and executes it, possibly storing new data values as the program executes. Compiler creates object code and stores it on disk. Linker links the object code with the libraries Loader Primary Memory Compiler Editor Preprocessor Linker Primary Memory Disk CPU Disk