CSCI 125 & 161 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk.

Slides:



Advertisements
Similar presentations
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
Advertisements

Hardware. Basic Computer System Central Processing Unit Input Devices Output Devices Backing Storage Devices.
ENGR2216 FORTRAN PROGRAMMING FOR ENGINEERS. Chapter 1 The computer CPU MEMORY INPUT/OUTPUT DEVICES DATA REPRESENTATION BINARY SYSTEM OCTAL & HEXADECIMAL.
Computer Hardware Introduction. Computer System Components Input Keyboard, Mouse, Camera, Touch Pad Processing CPU Output Monitor, Printer Storage Floppy,
Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
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
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:
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
What is Information Technology?
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
Introduction to Computers
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
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 Basics By: Nicole Hayes. Purposes of Computers Business – Track inventory. – Calculate payroll. – Maintain databases. Personal – Surf the web.
Hardware Data Storage.
Intro to Computers Computer Apps 1.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Introduction Lecture 01.
What is a computer? A computer is a device that:
Introduction to Computer Systems and the Java Programming Language.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
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.
IT Groundwork ICS3UC - Unit 1 Hardware. Overview of Computer System.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
Appendix A Information Systems Hardware Information Systems Today Leonard Jessup and Joseph Valacich.
 Bits & Bytes Bits & Bytes  Units of data Units of data  Storage devices Storage devices  Storage Types Storage Types  Secondary Storage Secondary.
CSCI-100 Introduction to Computing Hardware Part I.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Computers - The Journey Inside continues…
The Computer System CS 103: Computers and Application Software.
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,
© 2003 Prentice Hall, Inc.A-1 Appendix A Information Systems Hardware Information Systems Today Leonard Jessup and Joseph Valacich.
Chapter Two Hardware Basics: Inside the Box ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
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.
Memory The term memory is referred to computer’s main memory, or RAM (Random Access Memory). RAM is the location where data and programs are stored (temporarily),
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
Basic Computer Components Unit 2. What is a computer?  A computer is an electronic device that accepts raw data and processes it into information that.
Computer Graphics HARDWARE. Computers  Computers are automatic, electronic machines that –accept data & instructions from a user (INPUT) –store the data.
Computer Science II Chapter 1.
Chapter 1: An Overview of Computers and Programming Languages
CSCI 198: Lecture 4: Data Representation
Storage Hardware This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
CSCI 161: Lecture 4: Data Representation
Introduction to Computer Architecture
Chapter 1: An Overview of Computers and Programming Languages
CSCI 161: Introduction to Programming
Computer Hardware Introduction.
Introduction to Computers
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
Introduction to Computers
Computer Electronic device Accepts data - input
Presentation transcript:

CSCI 125 & 161 Lecture 2 Martin van Bommel

Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk drive Software - instructions for hardware –e.g. operating system, compiler, word processor

Software Development Early computers - complex coding schemes –machine language - 0’s and 1’s Later on - introduction of system software –assembly language - mnemonics for operations –assembly program  assembler  machine lang Even later - compilers created –high-level languages (HLL) - natural language –HLL program  compiler  machine language

High Level Languages John Backus - FORTRAN 1958, 60, 64 - ALGOL, COBOL, BASIC US Dept. of Defence - Ada Nicklaus Wirth - Pascal Dennis Ritchie - C Nicklaus Wirth - Modula – Bjarne Stroustrup – C++ (C with class) ANSI C adopted 1998 – ANSI C++ adopted

Computer Components CPU - Central Processing Unit –controls operation of entire systems –performs arithmetic and logic operations –stores and retrieves instructions and data contains ALU - Arithmetic-Logic Unit Control Unit

Components (con’t) Main memory (internal or primary memory) –RAM - Random Access Memory –stores instructions and data temporarily Secondary memory (external or auxiliary) –magnetic disk (hard disk or floppy), tape –CD-ROM, DVD-ROM, Flash drive, etc. Peripherals - used for Input/Output –keyboard, printer, monitor, etc.

Internal Representation Each unit of memory a two-state device –off or on, 0 or 1 –represent in Binary, two Binary Digits (bits) Organized into groups of 8 bits - bytes –represents single keyboard character Larger grouping of 16 or 32 bits - word –represents single integer value –identified by address for access

Memory Sizes Kilobyte (K) = 2 10 = 1,024 bytes Megabyte (Mb) = 2 20 = 1,048,576 bytes Gigabyte (Gb) = 2 30 = 1,073,741,824 bytes

SI Memory Sizes System International – Convention Kilobyte = 10 3 bytes = one thousand bytes Megabyte = 10 6 bytes = one million bytes Gigabyte = 10 9 bytes = one billion bytes Kibibyte (K) = 2 10 = 1,024 bytes Mebibyte (Mb) = 2 20 = 1,048,576 bytes Gibibyte (Gb) = 2 30 = 1,073,741,824 bytes

Decimal Number Systems Base 10 Digits - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 e.g = = 3 x x x10 0 = 3 x x x 1 =

Binary Number System Base 2 Digits 0, 1 e.g = = 1 x x x 2 0 = 1 x x x 1 = = 6

Counting in Binary DecimalBinary DecimalBinary

Character Representation 1 byte = 8 bits = 1 character? 256 possible codes with 8 bits Assign a character to each code Common assignment –ASCII - American Standard Code for Information Interchange – defines first 128

ASCII Code Code ValueLetter 0Null character Special Control Characters 10\n = New line 32Space 33-47, 58-64, 91-96Punctuation A - Z a - z

Interesting ASCII Choice? Digits 0 through 9 seem strange? DigitDecHex …… …

Unicode International language coding standard Superset of ASCII Various codes defined to use upper 128 bits for symbols and other languages

16 bits? Two characters? One integer? Part of a floating point? Machine language instruction? Memory address? Depends on application!