Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.

Slides:



Advertisements
Similar presentations
Basic Computer Vocabulary
Advertisements

The Central Processing Unit: What Goes on Inside the Computer.
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
ENGR2216 FORTRAN PROGRAMMING FOR ENGINEERS. Chapter 1 The computer CPU MEMORY INPUT/OUTPUT DEVICES DATA REPRESENTATION BINARY SYSTEM OCTAL & HEXADECIMAL.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Category1 Computers Category2 CPU.
Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Chapter 0 Introduction to Computing
Introduction to Computers
Computer Hardware In this lecture, we will study:
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Computer Applications NCBS Stage 1. The Central Processing UnitSlide 2Computer Applications Stage 1 Course Content and Assessment Practical – 60% (2 Hrs.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
MIS 175 Spring Learning Objectives When you finish this chapter, you will: –Recognize major components of an electronic computer. –Understand how.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Introduction Computer Hardware Jess 2006 The CPU.
Instructions Slides 3,4,5 are general questions that you should be able to answer. Use slides 6-27 to answer the questions. Write your answers in a separate.
Intro CS, Computers, Programming Introduction to Computer Science, Computers, and Programming Barbara Ericson Georgia Tech Aug 2009.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
Computer Hardware Computer Technology Jeopardy Review By C. Lyman © July 2007.
Today’s Topics  Chapter 6: System Unit  Chapter 7: Input/Output and Storage.
Abstraction – Number Systems and Data Representation.
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
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.
Understanding Computers, Ch.31 Chapter 3 The System Unit: Processing and Memory.
1 BUSINESS TECHNOLOGY TODAY Chapter Two How ICT Works.
Lesson 2 — How Does A Computer Process Data?
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510.
Introduction to Computers
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
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.
Computer Parts. Two Basic Parts Hardware & Software.
Course ILT Basics of information technology Unit objectives Define “information technology” (IT), distinguish between hardware and software, and identify.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
The Central Processing Unit: What Goes on Inside the Computer
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
IT Groundwork ICS3UC - Unit 1 Hardware. Overview of Computer System.
© Jalal Kawash 2010 Introduction Peeking into Computer Science 1.
Georgia Institute of Technology Speed part 6 Barb Ericson Georgia Institute of Technology May 2006.
Georgia Institute of Technology Workshop for Programming And Systems Management Teachers Chapter 1 Introduction to Computers and Programming.
Introduction to Programming with Java AP Computer Science ASFA.
The Computer System CS 103: Computers and Application Software.
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,
The Computer System.
Chapter 2 Turning Data into Something You Can Use
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
GCSE OCR Computing A451 The CPU Computing hardware 1.
The Study of Computer Science Chapter 0
Introduction to Programming with Java
Introduction Computer Hardware Jess 2006
Introduction to Programming Part 2
The Study of Computer Science Chapter 0
Introduction to Computers
The Study of Computer Science
A451: Computer Systems and Programming
Introduction to Computers
Introduction to Programming Part 2
The Study of Computer Science
Abstraction – Number Systems and Data Representation
The Study of Computer Science Chapter 0
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006

Georgia Institute of Technology Learning Goals Understand at a conceptual level –Why should you learn to program a computer? –What are the parts of a computer? –How does a computer execute a program? –How are things stored in a computer? –How much space do things take?

Georgia Institute of Technology Why Learn to Program? The computer is the most amazingly creative device that humans have ever conceived of. If you can imagine it, you can make it “real” on a computer. Computers will continue to have a major impact on modern life –Movies, games, business, healthcare, science, education, etc

Georgia Institute of Technology Computers Are Commonplace Computers, or at least processors, are in many common devices

Georgia Institute of Technology Programming is Communicating Alan Perlis, “You think you know when you can learn, are more sure when you can write, even more when you can teach, but certain when you can program.”

Georgia Institute of Technology Parts of a Computer User Interface –monitor (screen), mouse, keyboard, printer Brain - Central Processing Unit –can do math and logic operations Memory - Storage –main - RAM –secondary – Disks, CD-ROMs, DVDs

Georgia Institute of Technology CPU – Brain of the Computer Arithmetic/Logic Unit (ALU) –Does math and logic calculations on numbers in registers Control Unit –Reads instructions from memory and decodes and executes them using the ALU Add register A to register B 608 Store the value in register C into memory location

Georgia Institute of Technology Fetch, Decode, Execute Cycle The control unit reads (fetches) an instruction from memory The control unit decodes the instruction and sets up the hardware to do the instruction –like add the values in the A and B registers and put the result in the C register The instruction is executed The program counter is incremented to read the next instruction

Georgia Institute of Technology Play Computer Exercise Have one person be memory –Have a set of instructions on index cards Have one person be the control unit –Get the top index card from the memory –Read each instruction to the class and tell the arithmetic/logic unit what to do –When an instruction is finished discard it Have another person be the arithmetic/logic unit. This person should have a calculator and two pieces of paper (for register A and B) –Do what the control unit tells you to do

Georgia Institute of Technology Processor Speed Processors (CPUs) have a clock Clock speed is measured in megahertz (MHz) or gigahertz (GHz) Some instructions take just 2-3 clock cycles, some take more When the clock speed increases the computer can execute instructions faster

Georgia Institute of Technology Memory Computer memory is used to store data The smallest unit of memory is a bit (Binary digIT) A bit can be off (no voltage) or on (has voltage) which we interpret to be 0 or 1 Memory is organized into 8 bit contiguous groups called bytes. A megabyte is 1 million bytes. A gigabyte is 1 billion bytes.

Georgia Institute of Technology Types of Memory Registers –Very high speed temporary storage areas for use in the CPU –Used for calculations and comparisons Cache –High speed temporary storage for use with the CPU Main Memory – Random-access Memory (RAM) –High speed temporary storage –Contains programs and data currently being used –Often described in Megabytes (MB) Secondary Memory - Disks –Contains programs and data not currently being used –Often described in Gigabytes (GB)

Georgia Institute of Technology Why are there so many types of memory? The faster memory is the more it costs –So we reduce the cost by using small amounts of expensive memory (registers, cache, and RAM) and large amounts of cheaper memory (disks) Why do we need cache? –Processors are very fast and need quick access to lots of data –Cache provides quick access to data from RAM

Georgia Institute of Technology Binary Exercise Challenge the students to count to more than 5 using just the fingers on one hand –You have to count up by ones No counting by 10s –The fingers can be up or down No in-between states

Georgia Institute of Technology How does Memory Represent Values? The different patterns of the on and off bits in a byte determine the value stored Numbers are stored using binary numbers –101 is 1 * * * 2 2 = = 5 –1010 is 0 * * * * 2 3 = = 10 Characters are internally represented as numbers –Different numbers represent different characters –There are several systems for assigning numbers to characters: ASCII, EBCDIC, and Unicode

Georgia Institute of Technology Encode and Decode Exercise Use ASCII or UNICODE to write a secret message in decimal and then exchange it with another person –See for the decimal values for charactershttp://

Georgia Institute of Technology Encodings Make Computer Powerful Voltages are interpreted as numbers Numbers can be interpreted as characters Characters can be interpreted to be part of a link to Sun’s Java SiteSun’s Java Site off on off off off off off on a Sun’s Java Site

Georgia Institute of Technology Notepad Exercise Open notepad and type a sentence in it Save the file Check the size in bytes by leaving the cursor over the file name Now count the number of letters and spaces –Try adding more text to the file and predict how much bigger it will be in bytes

Georgia Institute of Technology Summary Computers are commonplace and very important to modern life Programming is about communication Computers are made up of parts –CPU – calculation and comparisons –Memory – temp storage –Disk – permanent storage –Monitor – Display –Keyboard and mouse – User input All data in a computer is stored in bits –More data takes more bits