3.1.2002Sudeshna Sarkar, IIT Kharagpur 1 Programming and Data Structure Sudeshna Sarkar Lecture 1.

Slides:



Advertisements
Similar presentations
Programming Concepts What we are going to learn in this subject? The basic concepts of writing computer programs commonly known as software.
Advertisements

2.00 Understand Computer Fundamentals
THIS IS A COMPUTER COMPILED BY RICHARD AMOAKO, CO-FOUNDER OF PROJECT GOODWILL AFRICA, A YOUTH EMPOWERMENT ORGANIZATION.
Computer Parts There are many parts that work together to make a computer work.
Input-Processing-Output
INTRODUCTION OF COMPUTER
C Programming for engineers Teaching assistant: Ben Sandbank Home page:
Computer Components.
Using Computers CS French Chapter 1.
Slide 3.1 Curtis/Cobham © Pearson Education Limited 2008 Chapter 3 Business Information Technology Lecture 1 Computer Hardware.
Data Communications and Computer Networks
Elements of the Computer (How a processor works)
Information Technology for the Health Professions, 2/e By Lillian Burke and Barbara Weill ©2005 Pearson Education, Inc. Pearson Prentice Hall Upper Saddle.
Introduction to Computers Essential Understanding of Computers and Computer Operations.
2.00 Understand Computer Fundamentals Unit Objective: 2.01.
Programming and Data Structure Instructors: Sujoy Ghosh (1,2,3), Anupam Basu (4,5) Pabitra Mitra (6,7) sujoy, anupam, Dept.
What is Information Technology?
Computer Systems I’m ONLY a machine! Standard Grade Revision.
Topics Introduction Hardware and Software How Computers Store Data
Configuration.
Computer Parts There are many parts that work together to make a computer work.
Computer Fundamentals
Introduction to Computer Organization and Architecture.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Introduction to the Computer System. What is a computer ? A computer is an electronic device that can accept data and instruction, process them or store.
Computer Components Checklist There are many parts that work together to make a computer work.
Course ILT Basics of information technology Unit objectives Define “information technology” (IT), distinguish between hardware and software, and identify.
COMP1050 Winter 2015 Computer System Maintenance.
The Four Parts of a Computer. Definition of a Computer A computer is an electronic device used to process data, converting the data into information that.
INFORMATION PROCESSING CYCLE. What is a computer? A computer is a machine that receives data and processes that data in some way to produce information.
Chap. 0 Introd. to Computer1 0. Introduction to Computer 0.1 Binary Number System
What is a computer? Computer is a device for processing information.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
 Describe the general organization and architecture of computers.  Identify computers’ major components and study their functions.  Identify the various.
Exploring Windows and Essential Computing Concepts - Getting Started 1 Getting Started Essential Computing Concepts.
Computer Architecture2  Computers are comprised of three things  The physical computer  The operating system  The user and programs running on the.
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
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.
INPUT, Output & storage devices
Introduction To Computers
Computer Parts There are many parts that work together to make a computer work.
Computers Inside & Out. How have computers affected your life? How has technology affected your life?
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.
My Computer System Room 219 My Computer System Monitor Books Power Monitor Keyboard Chair Headphones CPU Mouse Pad Power USB.
Computer Parts There are many parts that work together to make a computer work.
Computer System Hardware
Introduction to Programming
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
08/28/06 parts of the computer.
Understand Information Technology activities and careers.
The Computer Work Stations
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
4.03 IT PowerPoint Objective 4.03—Understand Information Technology activities and careers.
Introduction to Computers
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
Computer Parts There are many parts that work together to make a computer work.
Fundamental of computer
Computer Parts There are many parts that work together to make a computer work.
4.03 IT PowerPoint Objective 4.03—Understand Information Technology activities and careers.
Data Communications and Computer Networks
02.00 Understand Computer Fundamentals
Computer Parts There are many parts that work together to make a computer work.
Computer Parts There are many parts that work together to make a computer work.
Lesson 3 Computer Devices.
08/28/06 parts of the computer.
Presentation transcript:

Sudeshna Sarkar, IIT Kharagpur 1 Programming and Data Structure Sudeshna Sarkar Lecture 1

Sudeshna Sarkar, IIT Kharagpur 2 About the Course L-T-P rating of Single grade will be assigned for the theory and the laboratory courses combined. If a student fails in either the theory or the laboratory, or both, he/she gets a ‘F’ grade automatically. 60% theory + 40% laboratory Evaluation in the theory course: Mid-semester (30 %) End-semester (50%) Two class tests (20%)

Sudeshna Sarkar, IIT Kharagpur 3 Course Materials The course materials are available as PowerPoint slides. How to get them? 1. A copy will be given to a representative to be kept at a xerox centre so it wil be available to all the students. 2. For students having access to Internet, the slides would be available on-line at x.html x.html

Sudeshna Sarkar, IIT Kharagpur 4 Reference Books A Book on C Al Kelley & Ira Pohl, 4 th Edition, Pearson Education, Asia Programming With C B.S. Gottfried, Schaum’s Outline Series, Tata McGraw-Hill, The C Programming Language, 2 nd Edition (Ansi C), B. W. Kernighan & D. M. Ritchie, Prentice Hall Data Structures using C and C++, 2 nd Edition Langsam, Augenstein & Tenenbaum, PHI

Sudeshna Sarkar, IIT Kharagpur 5 What is a computer ? A computer is a machine which can accept data, process the data and supply results. Computer In Out

Sudeshna Sarkar, IIT Kharagpur 6 A computer Central Processing Unit ( CPU ) Storage Peripherals Output Peripherals Input Peripherals Main Memory

Sudeshna Sarkar, IIT Kharagpur 7 Input Devices Keyboard Mouse Joystick Scanners (OCR) Bar code readers Microphones / Sound digitizers Voice recognition devices Output Devices VDU / Monitor Printers Plotters Sound cards Film and video Robot arms

Sudeshna Sarkar, IIT Kharagpur 8 Storage Peripherals Magnetic Tape Data stored sequentially (back ups) Magnetic Disks Direct (random) access possible Types Hard Disks Floppy Disks Optical Disks CDROM CD-RW

Sudeshna Sarkar, IIT Kharagpur 9 Typical Configuration of a PC CPU:Pentium 4, 1.5 GHz Main Memory: 128 MB Hard Disk:40 GB Floppy Disk:1.44 MB CDROM: 52X Input Device:Keyboard, Mouse Output Device: Color Monitor (17 inch)

Sudeshna Sarkar, IIT Kharagpur 10 How does a computer work? Stored program A program is a set of instructions for carrying out a specific task. Programs are stored in secondary memory, when created. Programs are in main memory during execution.

Sudeshna Sarkar, IIT Kharagpur 11 CPU Central Processing Unit (CPU) is where computing takes place in order for a computer to perform tasks. CPU’s have large number of registers which temporarily store data and programs (instructions). The CPU receives stored instructions, interprets them and acts upon them.

Sudeshna Sarkar, IIT Kharagpur 12 Computer Program A program is simply a sequence of numeric codes stored in memory which is converted into simple operations (instructions for the CPU). This type of code is known as machine code. The instructions are retrieved from consecutive memory locations unless the current instruction tells it otherwise (branch / jump instructions).

Sudeshna Sarkar, IIT Kharagpur 13 Programming Languages Machine language Assembly Language Mnemonics (opcodes) Higher level languages Compiled languages: C, C++, Pascal, Fortran Converted to machine code using compilers Interpreted Languages: Basic, lisp Read-eval loop

Sudeshna Sarkar, IIT Kharagpur 14 Instruction Set  Start  Read M  Write M  Load Data, M  Copy M1, M2  Add M1, M2, M3  Sub M1, M2, M3  Compare M1, M2, M3  Jump L  J_Zero M, L  Halt 0: Start 1: Read 10 2: Read 11 3: Add 10, 11, 12 4: Write 12 5: Halt Program