1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
The Binary Machine Modern high-level programming languages are designed to make programming easier. On the other end, the low level, all modern digital.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
The Analytical Engine Module 6 Program Translation.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
COMP 14 Introduction to Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Ceng 230 Programming with C
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Topic 1: Introduction to Computers and Programming
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
CHAPTER 1 AN OVERVIEW OF COMPUTERS AND PROGRAMMING LANGUAGES.
chap1 Computer Programming Fall 2006 李秀惠
Chapter 1: An Overview of Computers and Programming Languages.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
Chapter 1 An Overview of Computers and Programming Languages.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
EGR 2261 Engineering Problem Solving Using C and C++ Professor Nick Reeder.
CSCI 125 & 161 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk.
Computer Hardware and Software Chapter 1. Overview Brief History of Computers Hardware of a Computer Binary and Hexadecimal Numbers Compiling vs. Interpreting.
1 COMP201 Computer Systems Dr Richard Nelson Room G.1.29.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
CISC105 General Computer Science Class 1 – 6/5/2006.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
The Central Processing Unit: What Goes on Inside the Computer
CPS120: Introduction to Computer Science Introduction to Computers.
CSCI 161: Introduction to Programming 1
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
1 Hardware and Software b Hardware the physical, tangible parts of a computerthe physical, tangible parts of a computer keyboard, monitor, wires, chips,
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Computer Organization & Assembly Language © by DR. M. Amer.
Computer Hardware. Lally School of M&T- Microcomputing and Info Systems Lecture Topics 1. Data Representation 2. Data Metrics 3. Central processing Unit.
2 nd MEETING Basic Introduction to Computers. The Computer Defined  A device that computes  Electronic device  Converts data into information  Modern.
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 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
1 Structured Programming in C Welcome to CPSC 206.
CS 125 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk drive Software.
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
Chapter 1 An Overview of Computers and Programming Languages.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Operating Systems.
Chapter 3 Getting Started. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To give an overview of the structure of a contemporary.
Java Programming: From the Ground Up
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
Overview of Computers and Programming Chapter 1
Computer System and Programming
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Computer Electronic device Accepts data - input
Computers: Hardware and Software
Introduction to Computer Programming
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University Spring 2009

Lecture 1: Introduction Overview of Computers and Programming Lecture 1

Lecture 1: Introduction 3 Objectives Overview of the development of computers. Computer system components. Software categories and languages. Process of writing, compiling, and executing high-level language programs.

Lecture 1: Introduction 4 What Is Computing Science? Is the study of the theoretical foundations of information and computation and their implementation and application in computer systems.

Lecture 1: Introduction 5 Fields of computing science Algorithms and data structures Programming languages and compilers Concurrent, parallel, and distributed systems Software engineering System architecture Theory of computation Communications Databases Artificial intelligence Visual rendering (or Computer graphics) Human-Computer Interaction Scientific computing

Lecture 1: Introduction 6 What Is a Computer? A machine that can be programmed to receive data, store it and process it into information. Data: raw facts representing people and events Information: data that is organized, meaningful, and useful

Lecture 1: Introduction 7 Fundamental Characteristics Speed Reliability Storage Capability

Lecture 1: Introduction 8 Computer System Components Hardware Equipment associated with the system Software Instructions that tell the hardware what to do People Computer programmer: writes software User: purchases and uses software Often called end-user

Lecture 1: Introduction 9 Computer Components Memory: Main Memory Secondary Storage CPU I/O devices

Lecture 1: Introduction 10 Central Processing Unit (CPU) The CPU has two roles: Coordinating all computer operations Performing arithmetic and logical operations in data The processor above can execute a simple instruction such as an integer addition in one six- billionth of a second.

Lecture 1: Introduction 11 The Machine Cycle The time required to retrieve, execute, and store an operation

Lecture 1: Introduction 12 Memory Memory cells Address Contents Main Memory Random Access Memory Read-Only access Memory Secondary Memory CD, DVD, etc.

Lecture 1: Introduction 13 Memory Units 1 Memory Cell = 1 or more Bytes 1 Byte = 8 Bits (Binary Digit) A Bit is either a 0 or a 1 Units for measuring the memory capacity: KB: Kilo Byte = 2 10 = 1024  1000 Byte MB: Mega Byte = 2 20  1 million Byte GB: Gega Byte = 2 30  1 billion Byte TB: Tera Byte = 2 40  1 trillion Byte

Lecture 1: Introduction 14 Data Representation Computers understand two things: on and off Data represented in binary form Binary (base 2) number system Contains only two digits, 0 and 1 Corresponds to two states, on and off

Lecture 1: Introduction 15 Coding Schemes Provide a common way of representing a character of data Needed so computers can exchange data Coding Scheme ASCII (American Standard Code for Information Interchange). 128 characters ( 256 characters in Extended ASCII ) A is encoded as (66 th character) 3 is encoded as EBCDIC (used by IBM)-256 characters Unicode characters. Two bytes are needed to store a character.

ASCII Table

Lecture 1: Introduction 18 Computer Software: Operation System (OS) Command-Line Interface UNIX MS-DOS Graphical User Interface Macintosh OS Windows

Lecture 1: Introduction 19 Operating System A set of programs that lies between applications software and the hardware Manages computer’s resources (CPU, peripheral devices) Establishes a user interface Determines how user interacts with operating system Provides and executes services for applications software

Lecture 1: Introduction 20 Kernel Manages the operating system Loaded from hard drive into memory when computer is booted Booting refers to starting the computer Loads other operating system programs from disk storage as needed

Lecture 1: Introduction 21 The Language of a Computer Since inside the computer digital signals are processed, the language of a computer is a sequence of 0’s and 1’s. The computer language is called the Machine Language. A sequence of 0s and 1s is also referred as a Binary Number Code.

Lecture 1: Introduction 22 The Evolution of Programming Languages  Early computers were programmed in machine language.  Example: Suppose we want to represent the equation W ages = Rate X Hours  to calculate the weekly wages in machine language stands for LOAD stands for MULTIPLY stands for STORE

Lecture 1: Introduction 23 Assembly languages Assembly languages : an instruction in assembly language is an easy-to-remember form called a mnemonic. Using the assembly language instructions, the equation to calculate the weekly wages can be written as follows: LOAD rate MULThour STORwages Assembler: An assembler is a program that translates a program written in assembly language into an equivalent program in machine language.

Lecture 1: Introduction 24 High-Level Languages: In order to calculate the weekly wages, the equation wages = rate X hours in C, can be written as follows: wages = rate * hours; Compiler: is a program that translates a program written in a high level language to an equivalent machine language.

Lecture 1: Introduction 25 High-Level Languages LanguageApplications AreasOrigin of Name FORTRAN Scientific programmingFormula Translation COBOL Business data processingCommon Business-Oriented Language LISP Artificial IntelligenceList processing C Systems programmingAfter B Prolog Artificial IntelligenceLogic programming Ada Real-time distributed systemsAda Augusta Byron Smalltalk GUI, object-oriented programmingObjects “talk” to one another. C++ Supports objects and object-oriented programming Incremental modification of C Java Support Web programmingOriginally named “Oak”

Lecture 1: Introduction 26 Computer Languages Machine Language Collection of binary numbers Not standardized Assembly Language Represented by Mnemonic codes Not standardized High-Level Language Independent of the CPU

Lecture 1: Introduction 27 High-Level Language Program

Lecture 1: Introduction 28 Flow of Information During Program Execution