St. Benedict s High School. Computing Science. Software Design & Development. (Part 2 Computer Architecture) National 5
|
|
- Poppy Strickland
- 5 years ago
- Views:
Transcription
1 Computing Science Software Design & Development (Part 2 Computer Architecture) National 5
2 DATA REPRESENTATION Numbers Binary/Decimal Conversion Example To convert 69 into binary: write down the binary place value headings, then work out which headings add up to 69: = (1 * 64 ) + (1*4) + (1*1) = = 69 Using this method it is just as easy to convert from binary back to decimal as shown above. More examples Something to know about storing numbers on a computer is that a fixed number of bits is always used. For simplicity our examples will always use just 8 bits as above. However, let s say a computer uses 32 bits to store numbers, then 3 would be stored as: stored as:
3 Floating Point Representation Real numbers and very large numbers are stored in the computer as floating point numbers. This is like the standard form or scientific notation used in maths except the computer does not store the point or the base. Decimal Example in Standard Form: 9.3 x in Floating Point: 93 8 The 93 is called the MANTISSA The 6 is called the EXPONENT So, in decimal Mantissa x 10 Exponent However, computers use binary, and in binary we express the exponent as a power of 2, so every binary floating point number is of the form: Mantissa x 2 Exponent More about the mantissa and exponent... Computers use a fixed number of bits to store floating point numbers. For instance with 32 bits they might use 24 bits for the mantissa and 8 bits for the exponent. Or they could use 20 bits for the mantissa and 12 bits for the exponent. This has an effect on the ACCURACY of the numbers stored and the RANGE of values that can be stored. 3
4 (Decimal examples) With our numbers imagine we have a calculator that can only display 3 digits for the mantissa and 1 digit for the exponent: With our numbers imagine we have a calculator that can only display 3 digits for the mantissa and 1 digit for the exponent: E would be stored: would be stored: Note the loss of accuracy cannot be stored at all. The point moves 10 places and this is out of our range. So the exponent determines the range of numbers that can be stored in floating point. Binary example The binary number The decimal point cannot be stored so it is moved 4 places to the LEFT. So the number in floating point from will be : x 2 4 which in binary, is x In this case the mantissa is and the exponent is 100. Range & accuracy Increasing the length of the mantissa increases the accuracy of the number stored. Increasing the length of the exponent increases the range of numbers stored. 4
5 Text Representation of Characters. Input, output, backing storage and data communications devices store and manipulate data in character code. During processing, text data stays as character code but numerical data is converted to binary patterns following the convention already discussed. Programmers specify the type of data within their code and conversion is then carried out by hardware or software. The characters that can be represented by the computer is known as the character set. Many computers have the flexibility of using several character sets, but we will restrict our discussions to ASCII and Unicode. ASCII American Standard Code for Information Interchange (ASCII) was first developed for teletypewriters and is now an internationally agreed standard for storing information. It is a character set which forms the basis for almost all other character sets. ASCII uses 7 bits per character, giving a possible 128 different characters (27 = 128). It has 96 displayable characters, enough to represent a letter or symbol of the English alphabet and numerical symbols. There are 32 special character codes known as control characters. A single code is used to represent each character which is stored in binary. When data is to be displayed or printed, the code is converted into an appropriate shape. The 7-bit table of ASCII codes is shown below. 5
6 The Control Characters The first 32 ASCII values are non-printing control characters, such as Return and Line feed. You generate these characters on the keyboard by holding down the Control key while you strike another key. When IBM PCs were designed, they moved and stored data in 8-bit units. The extra bit increased the character set from 128 to 256 (28 = 256), producing an extended character set that could accommodate international dialects or alphabetic characters in foreign languages (French and German accented characters are examples). Unicode An increase in worldwide communications brought a need to exchange information internationally. This presented a problem for Latin based character sets. Languages such as Japanese and Arabic, for example, do not use the Latin-based symbols of English, French or German and have entirely different symbol shapes. A Japanese symbol is shown. A solution to the problem of supporting multilingual text was to encode characters using 16 bits, thus providing 65,536 possible symbols (216 = 65,536). This is Unicode which is capable of including the characters from all known languages and alphabets in the world. SUMMARY ASCII codes can be stored in using 7 or 8 bits per character and therefore requires less storage than Unicode. Unicode uses 16 bits per character and can therefore represent more characters than ASCII. Unfortuantely this requires more storage than ASCII. 6
7 Graphics Bit-mapped graphics For a graphic drawn in a painting type package, the computer stores the necessary information as a two dimensional array of pixels. In black & white images, each pixel is represented by one bit. For example, Once drawn, each individual pixel can still be edited. Another example of storing a bit-mapped image: This is a graphic of a flower. In a painting type program it is viewed by the computer as a bit pattern. Because EVERY pixel is stored, bit-mapped graphics require a large amount of storage. 7
8 Using colour and bit-mapped graphics. The value of each pixel (whether it is filled in or not) is stored in one or more bits of data. For simple black & white images, one bit is sufficient to represent each pixel, but for colours, each pixel requires more than one bit of data. The more bits used to represent a pixel, the more colours that can be represented. The table below shows the way in which 2 bits can be used to store 4 different colours. Bit Pattern Colour No of Bits 00 Black 2 01 White 2 10 Red 2 11 Yellow 2 Two Red pixels would therefore take 4 bits of storage. Table showing number of bits and corresponding number of colours represented: No of bits per pixel No. of colours 1 2 (Black & white) ,777,216 (True Colour) So, 2 no. of bits = no. of colours available. 8
9 Advantages of bit-mapped graphic representation a bit mapped image can be edited at the pixel level. Thus a designer may apply particular colour values to a selected pixel area to produce shading or textured effects it is possible to create a wider range of irregular shapes and patterns by simply deleting or editing pixels anywhere on the image Disadvantages of bit-mapped representation requires large amounts of storage space image becomes course (jagged) when scaled Resolution The density of the pixels, known as the resolution, determines how sharply the image is represented. This is often expressed in dots per inch (dpi ). A picture at 300dpi contains much more detail than a picture at 72dpi. 9
10 Vector Graphics With vector graphics, images are stored as a series of attributes i.e. a description of how it is drawn. Any editing is done at the level of attributes. Editing an individual pixel is not possible. Examples Rectangle Start x,y position Length, breadth and angle of rotation Thickness & colour of line Colour fill etc. Circle Centre x,y position Radius Thickness & colour of line Colour fill etc. Advantages of vector graphic representation as values are not held for every pixel, less storage space required than a bit mapped image they do not lose their image quality on scaling - object attributes are simply recalculated Disadvantages of vector graphic representation individual pixels cannot be edited. 10
11 Storage Requirements Calculating Storage Requirements - SCREEN You can calculate the storage requirements for a screen or a graphic on the screen using the formula: No. of BITS required = Pixels across x Pixels down x bit depth Example 1: A 1280 by 800 screen using 8 bit colour depth needs: 1280 x 800 x 8 BITS = bits /8 = bytes /1024 = 1000 Kbytes Example 2: Calculate the storage required for a screen using 1620 by 1280 pixels with colours. Bits = 1620 x 1280 x 16 (because 2 16 = ) = bits /8 = bytes /1024 = 4050 Kbytes /1024 = 3.96 Mbytes Note how the number of bits per pixel increases the file size. 24 bit colour produces a file 3 times larger than 8 bit colour. 11
12 Calculating Storage Requirements BIT-MAPPED FILE You can also calculate the storage requirements for a bit-mapped graphics file. The idea is basically the same as before but it takes a little longer to get there. As before we need to identify the number of pixels required and the bit-depth (no. of colours used). Calculating the storage requirements of a file requires a little extra detective work! Example: This picture measures 2 inches by 3 inches, contains a possible 256 colours and was scanned at 72 dpi. First we have to work out the number of pixels: 2 inches x 3 inches at 72 d.p.i (dots per inch) = (2 x 72) x (3 x 72) = pixels Next, the bit depth: Bit depth = 8 (because 2 8 = 256) So, our storage requirement is pixels at 8 bits each x 8 = bits /8 = bytes /1024 = Kbytes 12
13 TRANSLATORS Need for Translators High Level Languages Computers only understand binary. Unfortunately, humans are not so good at understanding this and so humans program computers in high level languages. High level languages use normal mathematical notation and English words to create instructions. Visual Basic is an example of a high level language. Because high level languages use English-like words programs are easy to write and edit. A translator is a special program that converts a program from a high-level language into machine code. The high-level program is called the source code. This is often created using a text editor. The translator turns this into object code which is usually the machine code (binary) of the computer being used. Translators can normally be put into two groups compilers and interpreters. Interpreters v Compilers Interpreter An interpreter translates and executes a program one statement at a time. Advantages When syntax errors are made by the user, they are highlighted immediately. Speeds up the software development process Disadvantages Interpreted programs are slow to run Every time the program is run, each line of code must be translated again. Statements inside a loop have to be translated every time round the loop. The interpreter must also be in memory as the program is running. Thus the RAM demands of an interpreted program are greater. 13
14 Compiler A compiler is a program that translates your entire high-level source program into your computer s machine code. It produces a machine code program that is saved to disk and which can be executed by itself. This version of the program is known as object code. The source code will only be used again if the program needs to be updated or bugs fixed. Should this happen, an updated version of the object code is produced by using the compiler again. Advantages A compiled program runs faster than an interpreted program as the whole source is translated to machine code. The compiler only needs to be in memory while translation is taking place - more economic memory usage than interpreter Disadvantage Syntax errors in the source code are only identified when the program is compiled. 14
15 COMPUTER ARCHITECTURE The Processor The "very fast idiot" The processor is the "brain" of the computer system. It does all the hard work and calculations etc. It can do billions of these calucaltions per second! A computer is able to process huge amounts of data (number crunching) very fast, but it can't think for itself - it can only do what we tell it to do. There is a saying in Computer Science: "Garbage in, garbage out!" Inside The Processor The processor is made up of a number of very important parts as follows: The Control Unit This is the nerve centre of the computer. It controls the sequencing of all operations both within the CPU and in connection with INPUT, OUTPUT and BACKING STORAGE devices. The ALU (Arithmetic & Logic Unit) The two main functions of the ALU are: 1. To carry out the arithmetic required by the system (ADD, SUBTRACT, DIVIDE and so on). 2. To perform certain 'logical operations'. e.g. To test if one data item is larger than another and then to perform some action depending on the result of this test. Registers Registers are temporary memory locations within the processor itself used to hold data being processed. Because they are inside the processor, they are very fast to access. 15
16 Memory There are two types of memory: RAM and ROM. Random Access Memory (RAM) RAM is for storing user's programs and data while they work. The contents of RAM are temporary - it's contents may be changed. The contents of RAM are lost when the computer is switched off. Adding more RAM allows the user to run programs at the same time without slowing the machine down. Read Only Memory (ROM) The contents of ROM are permanent - it's contents cannot be changed. The contents of ROM are not lost when the computer is switched off. Data stored in ROM loads much faster than RAM. Memory Addresses When the processor fetches instructions and data from the memory it must know where to find them. In a single RAM module there may be millions of memory locations each one containing a program instruction or item of data. In order to find each memory location they are all numbered. Each memory location has it's own unique address. The processor uses the addresses to select the location which contains the program instruction or data to process next. The concept of memory locations, each with its own unique address is called addressability. 16
17 Buses Moving Data Between Processor and Memory Data and instructions have to be transferred backwards and forwards between memory and the processor and this is done by buses. A bus is an electronic highway used to transmit binary patterns. There are three buses: the address bus which is used by the processor to pinpoint the memory location needed. This is a one-way (uni-directional) bus. the data bus which is used to transfer the data. It's size will usually match the word size i.e. the size of the memory locations. This is a two-way (bi-directional) bus. the control bus which is used to initiate and control what is happening. Memory Read 1. The address bus is used to select the address of the desired memory location. 2. The control bus sends a signal to activate the transfer. 3. The data in the selected location is sent along the data bus to the processor. Memory Write 1. The address bus is used to select the desired memory location. 2. The control bus sends a signal to activate the transfer. 3. The data is sent along the data bus to the selected memory location. 17
18 Interfaces Data exchange with peripherals So far we have looked at the internal parts of a typical computer system. But what about the peripheral devices we connect our computers to? How do these extra pieces of hardware connect to our systems? Peripheral devices connect to computer systems via slots on the back of the computer. Such devices include printers, scanners, digital cameras, digital video recorders, mice, keyboards, mp3 players etc. They also include storage devices such as disk drives. Each device has its own operational speed, uses its own language and deals with different amounts of data at a time. Interfaces In order for peripheral devices to communicate with the CPU they need to be interfaced. An interface is a unit that sits between the CPU and a peripheral device and compensates for the differences in speed, codes and other characteristics, to ensure compatibility. Basic functions of an interface Control Signals. Transmit and receive signals to/from the CPU in order to synchronise the movement of data in an organised manner. Input/Output. Transfer data between the computer itself and the external device. Data Conversion. Convert data to/from the format understood by the peripheral to the format understood by the processor. The main task of an interface is to transfer data so that the processor is delayed as little as possible and therefore system performance does not suffer unnecessarily. 18
Computer Systems: Data Representation
C Wilson C Wilson Computer Systems: Data Representation This section on Data Representation considers how computers represent data by using binary numbers. At the lowest level in the computer, only binary
More informationTopics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming
Topics C H A P T E R 1 Introduction to Computers and Programming Introduction Hardware and Software How Computers Store Data Using Python Introduction Computers can be programmed Designed to do any job
More informationCC411: Introduction To Microprocessors
CC411: Introduction To Microprocessors OBJECTIVES this chapter enables the student to: Use number { base 2, base 10, or base 16 }. Add and subtract binary/hex numbers. Represent any binary number in 2
More informationDec Hex Bin ORG ; ZERO. Introduction To Computing
Dec Hex Bin 0 0 00000000 ORG ; ZERO Introduction To Computing OBJECTIVES this chapter enables the student to: Convert any number from base 2, base 10, or base 16 to any of the other two bases. Add and
More informationHomeschool Enrichment. The System Unit: Processing & Memory
Homeschool Enrichment The System Unit: Processing & Memory Overview This chapter covers: How computers represent data and programs How the CPU, memory, and other components are arranged inside the system
More informationINTRODUCTION TO COMPUTERS
INTRODUCTION TO COMPUTERS When we talk about computers, we really are talking about a Computer System. Computer System: It is a combination of Hardware and Software. This combination allows a computer
More informationTechnology in Action
Technology in Action Chapter 9 Behind the Scenes: A Closer Look at System Hardware 1 Binary Language Computers work in binary language. Consists of two numbers: 0 and 1 Everything a computer does is broken
More informationC H A P T E R 1. Introduction to Computers and Programming
C H A P T E R 1 Introduction to Computers and Programming Topics Introduction Hardware and Software How Computers Store Data How a Program Works Using Python Computer Uses What do students use computers
More informationComputer Science Applications to Cultural Heritage. Introduction to computer systems
Computer Science Applications to Cultural Heritage Introduction to computer systems Filippo Bergamasco (filippo.bergamasco@unive.it) http://www.dais.unive.it/~bergamasco DAIS, Ca Foscari University of
More informationNational 5 Computing Science Software Design & Development
National 5 Computing Science Software Design & Development 1 Stages of Development 2 Analysis 3 Design 4 Implementation 5 Testing 6 Documentation 7 Evaluation 8 Maintenance 9 Data Types & Structures 10
More informationMicroprocessors I MICROCOMPUTERS AND MICROPROCESSORS
Microprocessors I Outline of the Lecture Microcomputers and Microprocessors Evolution of Intel 80x86 Family Microprocessors Binary and Hexadecimal Number Systems MICROCOMPUTERS AND MICROPROCESSORS There
More informationChapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction
Chapter 1: An Overview of Computers and Programming Languages Objectives Objectives (cont d.) In this chapter, you will: Learn about different types of computers Explore hardware and software Learn about
More informationStonelaw High School. Computing Science. BGE - Computer Systems
Stonelaw High School Computing Science BGE - Computer Systems Contents Computer Systems... 3 Computer Systems... 3 Hardware & Software... 3 Data Representation... 3 Representing Positive Integers... 3
More informationChapter Two. Hardware Basics: Inside the Box
Chapter Two Hardware Basics: Inside the Box After reading this chapter, you should be able to: Explain general terms how computers store and manipulate information. Describe the basic structure of a computer
More informationName: Date: Hour: The abacus (still in use today) is about 5,000 years old. Not a computer.
Introduction to Computers - Intel: The Journey Inside Name: Date: Hour: Directions: Read/review each lesson and write your short answers on this paper. If there is a video available, watch it using headphones.
More informationCommon Technology Words and Definitions
Common Technology Words and Definitions 77 78 Common Technology Words and Definitions: ASCII American Standard Code for Information Interchange, a code that makes it possible to send information from one
More informationHigher Computing: Computer Systems CONTENTS
CONTENTS Topic 1 DATA REPRESENTATION... 3 1.1 Text... 3 1. Numbers... 4 Exercise... 4 1.3 Integers: positive and negative numbers... 5 1.3.1 Signed Bit... 5 1.3.1 Twos Complement... 5 Exercise... 6 1.4
More informationObjectives. Connecting with Computer Science 2
Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn how numbering systems are used to count Understand the significance of positional value
More informationAn Overview of the Computer System. Kafui A. Prebbie 24
An Overview of the Computer System Kafui A. Prebbie -kafui@kafui.com 24 The Parts of a Computer System What is a Computer? Hardware Software Data Users Kafui A. Prebbie -kafui@kafui.com 25 The Parts of
More information8/16/12. Computer Organization. Architecture. Computer Organization. Computer Basics
Computer Organization Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages 1 2 Architecture Computer Organization n central-processing unit n performs the
More informationGeneral Computing Concepts. Coding and Representation. General Computing Concepts. Computing Concepts: Review
Computing Concepts: Review Coding and Representation Computers represent all information in terms of numbers ASCII code: Decimal number 65 represents A RGB: (255,0,0) represents the intense red Computers
More informationM1 Computers and Data
M1 Computers and Data Module Outline Architecture vs. Organization. Computer system and its submodules. Concept of frequency. Processor performance equation. Representation of information characters, signed
More informationChapter 4 The Components of the System Unit
Chapter 4 The Components of the System Unit The System Unit What is the system unit? Case that contains electronic components of the computer used to process data Sometimes called the chassis p. 184 Fig.
More information2nd Paragraph should make a point (could be an advantage or disadvantage) and explain the point fully giving an example where necessary.
STUDENT TEACHER WORKING AT GRADE TERM TARGET CLASS YEAR TARGET The long answer questions in this booklet are designed to stretch and challenge you. It is important that you understand how they should be
More informationIntroduction. Arizona State University 1
Introduction CSE100 Principles of Programming with C++, Fall 2018 (based off Chapter 1 slides by Pearson) Ryan Dougherty Arizona State University http://www.public.asu.edu/~redoughe/ Arizona State University
More information9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment
Introduction 1 Mandatory: Chapter 1 Optional: None Reading Assignment 2 1 Computers, Zeros, and Ones The big picture 3 At the end of this section, the student will be able to: 1. Name the 5 basic components
More information3 Data Storage 3.1. Foundations of Computer Science Cengage Learning
3 Data Storage 3.1 Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: List five different data types used in a computer. Describe how
More informationDigital Fundamentals
Digital Fundamentals Tenth Edition Floyd Chapter 2 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Quiz 2 Agenda Lecture: Chapter 2 (2-7 through 2-11):
More informationSahalsoftware college. Welcome To understanding Basic Computer Concept
Welcome To understanding Basic Computer Concept 1 Chapter1: Understanding Computer Concepts What is a computer? A computer is a machine that takes in data, processes if following a set of instructions
More informationCS 101, Mock Computer Architecture
CS 101, Mock Computer Architecture Computer organization and architecture refers to the actual hardware used to construct the computer, and the way that the hardware operates both physically and logically
More informationComputer Organization
Computer Organization It describes the function and design of the various units of digital computers that store and process information. It also deals with the units of computer that receive information
More information7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.
Technology in Action Technology in Action Chapter 9 Behind the Scenes: A Closer Look a System Hardware Chapter Topics Computer switches Binary number system Inside the CPU Cache memory Types of RAM Computer
More informationQuestion Bank. Fundamentals Of Computer FYBCA (SEM - I)
Question Bank Fundamentals Of Computer FYBCA (SEM - I) 1) Choose the appropriate option (1 Marks Questions) 1) COBOL is an example of level language. a) low level b) middle level c) high level d) both
More informationComputers Are Your Future
Computers Are Your Future Twelfth Edition Chapter 2: Inside the System Unit Copyright 2012 Pearson Education, Inc. Publishing as Prentice Hall 1 Inside the Computer System Copyright 2012 Pearson Education,
More information1. A folder inside a folder is called. a) Mini Directory b) Sub Directory c) Root Folder d) Child Folder e) None of these
1. A folder inside a folder is called. a) Mini Directory b) Sub Directory c) Root Folder d) Child Folder 2. A mouse is this kind of device a) Input b) Output c) Network d) Storage 3. All deleted files
More informationHARDWARE. There are a number of factors that effect the speed of the processor. Explain how these factors affect the speed of the computer s CPU.
HARDWARE hardware ˈhɑːdwɛː noun [ mass noun ] the machines, wiring, and other physical components of a computer or other electronic system. select a software package that suits your requirements and buy
More informationComputer Architecture 2/26/01 Lecture #
Computer Architecture 2/26/01 Lecture #9 16.070 On a previous lecture, we discussed the software development process and in particular, the development of a software architecture Recall the output of the
More informationFull file at
Computers Are Your Future, 12e (LaBerta) Chapter 2 Inside the System Unit 1) A byte: A) is the equivalent of eight binary digits. B) represents one digit in the decimal numbering system. C) is the smallest
More informationComponents of a personal computer
Components of a personal computer Computer systems ranging from a controller in a microwave oven to a large supercomputer contain components providing five functions. A typical personal computer has hard,
More informationDigital Fundamentals
Digital Fundamentals Tenth Edition Floyd Chapter 2 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Decimal Numbers The position of each digit in a weighted
More informationCMSC 1513 Lecture 1.2
Key Point: A computer is an electronic device that stores and processes data. Hardware Software Hardware comprises the visible, physical elements of the computer. Software provides the invisible instructions
More informationPadasalai s - VIRUDHUNAGAR DISTRICT COMMON FIRST MID TERM TEST, JULY 2018 STANDARD 11 COMPUTER APPLICATION
Padasalai s - VIRUDHUNAGAR DISTRICT COMMON FIRST MID TERM TEST, JULY 2018 I. CHOOSE THE CORRECT ANSWER: 1. C. Power on Self Test 2. d. Optical character reader 3. b. 2 4. c. Peta 5. d. a and b 6. b. 111,
More informationCourse Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation
Course Schedule CS 221 Computer Architecture Week 3: Information Representation (2) Fall 2001 W1 Sep 11- Sep 14 Introduction W2 Sep 18- Sep 21 Information Representation (1) (Chapter 3) W3 Sep 25- Sep
More informationHANDOUT: COMPUTER PARTS
HANDOUT: COMPUTER PARTS Because computers are so important to our lives, there is a constant need to design and develop new hardware, software, and systems. Have you used a computer before? I m sure you
More informationChapter 9: A Closer Look at System Hardware
Chapter 9: A Closer Look at System Hardware CS10001 Computer Literacy Chapter 9: A Closer Look at System Hardware 1 Topics Discussed Digital Data and Switches Manual Electrical Digital Data Representation
More informationChapter 9: A Closer Look at System Hardware 4
Chapter 9: A Closer Look at System Hardware CS10001 Computer Literacy Topics Discussed Digital Data and Switches Manual Electrical Digital Data Representation Decimal to Binary (Numbers) Characters and
More informationDiskrečioji matematika
Diskrečioji matematika www.mif.vu.lt/~algis Basic structures Introduction program euclid (input, output); var x,y: integer; function gcd (u,v: integer): integer; var t: integer; begin repeat if u
More informationThe Central Processing Unit
The Central Processing Unit All computers derive from the same basic design, usually referred to as the von Neumann architecture. This concept involves solving a problem by defining a sequence of commands
More informationUnit - II. Computer Concepts and C Programming 06CCP13. Unit II
Computer Concepts and C Programming () Unit II Unit Division Unit-II (6 Hours) Processing Data Storing Data Topics Transforming Data into Information How computers represent data How computers process
More informationCS1101: Lecture 18. Computer Systems Organization: Input/Output. Lecture Outline. Mice. Dot-Matrix Printers. Mice
CS1101: Lecture 18 Computer Systems Organization: Input/Output II Mice Lecture Outline Dr. Barry O Sullivan b.osullivan@cs.ucc.ie Printers Dot-Matrix Printers Inkjet Printers Laser Printer Communication
More informationQ1. Describe C.P.U and its subunits with the help of diagram?
Q1. Describe C.P.U and its subunits with the help of diagram? Ans. C.P.U (CENTRAL PROCESSING UNIT) Book page # 27 The C.P.U is the brain of computer.it controls and supervises all the units. Processing
More informationComputer Fundamentals
Computer Fundamentals 1 Draw the block diagram of computer architecture and explain each block. Computer is made up of mainly four components, 1) Central processing unit (CPU) 2) Input section 3) Output
More informationBits and Bytes. Here is a sort of glossary of computer buzzwords you will encounter in computer use:
Bits and Bytes Here is a sort of glossary of computer buzzwords you will encounter in computer use: Bit Computer processors can only tell if a wire is on or off. Luckily, they can look at lots of wires
More informationThe x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language
The x86 Microprocessors Introduction 1.1 Assembly Language Numbering and Coding Systems Human beings use the decimal system (base 10) Decimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Computer systems use the
More informationRepresenting Characters, Strings and Text
Çetin Kaya Koç http://koclab.cs.ucsb.edu/teaching/cs192 koc@cs.ucsb.edu Çetin Kaya Koç http://koclab.cs.ucsb.edu Fall 2016 1 / 19 Representing and Processing Text Representation of text predates the use
More informationProgramming: detailed instructions which tell the computer hardware what to do aka software Computer Science: the study NOT of computers, but of what
Programming: detailed instructions which tell the computer hardware what to do aka software Computer Science: the study NOT of computers, but of what can be computed what processes a computer can execute
More informationMotherboard BIOS. Fig: 1 What you see (or something similar) if you turn the PC manufacturer's logo off
Motherboard The Motherboard is a large printed circuit board that almost all other components plug into. It can probably best describe it as the nervous system of the PC as information is passed from one
More informationTUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.
TUTORIAL 1 1. Make a list of 10 products containing microprocessors that we use everyday. Personal computer Television Calculator Elevator Mobile phones MP3 players Microwave ovens DVD players Engine Control
More informationDigital Logic. The Binary System is a way of writing numbers using only the digits 0 and 1. This is the method used by the (digital) computer.
Digital Logic 1 Data Representations 1.1 The Binary System The Binary System is a way of writing numbers using only the digits 0 and 1. This is the method used by the (digital) computer. The system we
More informationMachine Architecture. or what s in the box? Lectures 2 & 3. Prof Leslie Smith. ITNP23 - Autumn 2014 Lectures 2&3, Slide 1
Machine Architecture Prof Leslie Smith or what s in the box? Lectures 2 & 3 ITNP23 - Autumn 2014 Lectures 2&3, Slide 1 Basic Machine Architecture In these lectures we aim to: understand the basic architecture
More informationmachine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.
Central Processing Unit (CPU) A processor is also called the CPU, and it works hand in hand with other circuits known as main memory to carry out processing. The CPU is the "brain" of the computer; it
More informationIntroduction to Computers - Chapter 4
Introduction to Computers - Chapter 4 Since the invention of the transistor and the first digital computer of the 1940s, computers have been increasing in complexity and performance; however, their overall
More informationIntroduction to Informatics
Introduction to Informatics Lecture : Encoding Numbers (Part II) Readings until now Lecture notes Posted online @ http://informatics.indiana.edu/rocha/i The Nature of Information Technology Modeling the
More informationCPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.
CPU ARCHITECTURE QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system. ANSWER 1 Data Bus Width the width of the data bus determines the number
More informationBits, bytes, binary numbers, and the representation of information
Bits, bytes, binary numbers, and the representation of information computers represent, process, store, copy, and transmit everything as numbers hence "digital computer" the numbers can represent anything
More informationHomework 1 graded and returned in class today. Solutions posted online. Request regrades by next class period. Question 10 treated as extra credit
Announcements Homework 1 graded and returned in class today. Solutions posted online. Request regrades by next class period. Question 10 treated as extra credit Quiz 2 Monday on Number System Conversions
More informationSegment 1A. Introduction to Microcomputer and Microprocessor
Segment 1A Introduction to Microcomputer and Microprocessor 1.1 General Architecture of a Microcomputer System: The term microcomputer is generally synonymous with personal computer, or a computer that
More informationSystem Unit Components Chapter2
System Unit Components Chapter2 ITBIS105 IS-IT-UOB 2013 The System Unit What is the system unit? Case that contains electronic components of the computer used to process data Sometimes called the chassis
More informationBasic Computer Hardware Notes in PDF
Basic Computer Hardware Notes in PDF Computer Awareness is tested in almost every exam. Some exams like SBI PO, SBI Clerk, IBPS PO, IBPS Clerk, SSC CGL, Railways RRB etc. require you to have Basic Computer
More informationBasic computer principles
Basic computer principles deeper view AREEJ ALOUFI Types of computers: supercomputer/mainframe. Minicomputer. Microcomputer. 3 Supercomputers/ Mainframes A mainframe computer is a large computer, often
More informationBasic data types. Building blocks of computation
Basic data types Building blocks of computation Goals By the end of this lesson you will be able to: Understand the commonly used basic data types of C++ including Characters Integers Floating-point values
More informationCS/EE 260. Digital Computers Organization and Logical Design
CS/EE 260. Digital Computers Organization and Logical Design David M. Zar Computer Science and Engineering Department Washington University dzar@cse.wustl.edu http://www.cse.wustl.edu/~dzar/class/260 Digital
More informationIntermediate Programming & Design (C++) Notation
Notation Byte = 8 bits (a sequence of 0 s and 1 s) To indicate larger amounts of storage, some prefixes taken from the metric system are used One kilobyte (KB) = 2 10 bytes = 1024 bytes 10 3 bytes One
More informationHigher Grade Computing Homework Answers Units 1 & 2
Higher Grade Computing Homework Answers Units & UNIT : COMPUTER SYSTEMS Data Representation Answers and Marking Scheme Q Q Give two reasons why computers use the binary number system Binary arithmetic
More informationIT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1
IT 1204 Section 2.0 Data Representation and Arithmetic 2009, University of Colombo School of Computing 1 What is Analog and Digital The interpretation of an analog signal would correspond to a signal whose
More informationSwitching to AQA from OCR
Switching to AQA from OCR This resource compares our new GCSE Computer Science specification (8520) with the new OCR Computer Science specification (J276). If you are thinking of switching from OCR to
More informationChapter 1: An Overview of Computers and Logic
Chapter 1: An Overview of Computers and Logic Programming Logic and Design, Third Edition Comprehensive Objectives After studying Chapter 1, you should be able to: Understand computer components and operations
More informationWhat is the typical configuration of a computer sold today? 1-1
What is the typical configuration of a computer sold today? 1-1 Computer Hardware Components In this chapter: How did the computer become known as the stored-program computer? Do they all have the same
More informationChapter 4 The Components of the System Unit
Chapter 4 The Components of the System Unit Chapter 4 Objectives Differentiate among various styles of of system units Differentiate among the the various types of of memory Identify chips, adapter cards,
More information9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation
Data Representation II CMSC 313 Sections 01, 02 The conversions we have so far presented have involved only unsigned numbers. To represent signed integers, computer systems allocate the high-order bit
More informationSo computers can't think in the same way that people do. But what they do, they do excellently well and very, very fast.
Input What is Processing? Processing Output Processing is the thinking that the computer does - the calculations, comparisons, and decisions. Storage People also process data. What you see and hear and
More informationC++ Programming Language Lecture 1 Introduction
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department Introduction In this course you will learn C++ and the legacy C code. It is
More informationLecture 1: What is a computer?
02-201, Fall 2015, Carl Kingsford Lecture 1: What is a computer? 0. Today's Topics Basic computer architecture How the computer represents data 1. What is a computer? A modern computer is a collection
More informationlesson 3 Transforming Data into Information
essential concepts lesson 3 Transforming Data into Information This lesson includes the following sections: How Computers Represent Data How Computers Process Data Factors Affecting Processing Speed Extending
More information8. A is approximately one billion bytes a. Kilobyte b. Bit c. Gigabyte d. Megabyte 9. SMPT, FTP and DNS are applications of the layer a. Data link b.
SET 19 1. All of the following are examples of real security and privacy risks except a. Hackers b. Spam c. Viruses d. Identity theft 2. A(n) --- system is a small, wireless handheld computer that scans
More informationComputers Are Your Future
Computers Are Your Future 2008 Prentice-Hall, Inc. Computers Are Your Future Chapter 6 Inside the System Unit 2008 Prentice-Hall, Inc. Slide 2 What You Will Learn... Understand how computers represent
More informationFundamentals of Programming (Python) Basic Concepts. Ali Taheri Sharif University of Technology Spring 2018
Fundamentals of Programming (Python) Basic Concepts Ali Taheri Sharif University of Technology Outline 1. What is a Computer? 2. Computer System Organization 3. What is a Computer Program? 4. Programming
More informationComputer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.
Hardware and Software Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages Computer systems consist of hardware and software. Hardware includes the tangible
More informationFinal Labs and Tutors
ICT106 Fundamentals of Computer Systems - Topic 2 REPRESENTATION AND STORAGE OF INFORMATION Reading: Linux Assembly Programming Language, Ch 2.4-2.9 and 3.6-3.8 Final Labs and Tutors Venue and time South
More informationNumber Systems. Dr. Tarek A. Tutunji Philadelphia University, Jordan
Number Systems Dr. Tarek A. Tutunji Philadelphia University, Jordan Number Systems Programmable controllers use binary numbers in one form or another to represent various codes and quantities. Every number
More informationCOMPUTER ORGANIZATION & ARCHITECTURE
COMPUTER ORGANIZATION & ARCHITECTURE Instructions Sets Architecture Lesson 5a 1 What are Instruction Sets The complete collection of instructions that are understood by a CPU Can be considered as a functional
More informationCHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS INTRODUCTION Digital computers use sequences of binary digits (bits) to represent numbers, letters, special symbols, music, pictures, and videos.
More informationELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch. & Ch. Introduction to Microcontroller Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 What is microcontroller? (Ch..) 85 Microcontroller
More informationStandard File Formats
Standard File Formats Introduction:... 2 Text: TXT and RTF... 4 Grapics: BMP, GIF, JPG and PNG... 5 Audio: WAV and MP3... 8 Video: AVI and MPG... 11 Page 1 Introduction You can store many different types
More informationInput and output Systems. Peter Rounce - room G06
Input and output Systems Peter Rounce - room G06 P.Rounce@cs.ucl.ac.uk 1 Keyboard Each key-press sends on byte Each key is numbered Possibly two bytes one when pressed, one when released E.g. shift key
More informationChapter 4: Computer Codes. In this chapter you will learn about:
Ref. Page Slide 1/30 Learning Objectives In this chapter you will learn about: Computer data Computer codes: representation of data in binary Most commonly used computer codes Collating sequence Ref. Page
More informationSwitching to AQA from Edexcel
Switching to AQA from Edexcel This resource compares our new GCSE Computer Science specification (8520) with the new Edexcel Computer Science specification (1CP1). If you are thinking of switching from
More informationIntroduction. Computer System Organization. Languages, Levels, Virtual Machines. A multilevel machine. Sarjana Magister Program
Computer System Organization Sarjana Magister Program Introduction Tb. Maulana Kusuma Week 1 Session 1 Languages, Levels, Virtual Machines A multilevel machine 1 Contemporary Multilevel Machines A six-level
More informationInformation Science 1
Information Science 1 -Basic Concepts of Computers: Opera4on, Architecture, Memory- Week 02 College of Information Science and Engineering Ritsumeikan University Today s lecture outline l Recall the previous
More informationHardware and Software - Revision Summary
Hardware and Software - Revision Summary Complete this worksheet to provide a study tool for this chapter. Hardware Hardware is Peripheral hardware includes Hardware Functions Function Description Examples
More information