SlideShare a Scribd company logo
The Software Developers View of Hardware Representation of Data within a Computer System
Syllabus Representation of data within a computer system: Character representation: Hexadecimal ASCII Conversion between binary and decimal.
Why does this mean? Basically, software cannot run without hardware. Therefore, this chapter we will concentrate on the following: How inputs (data) are represented by the computer? –  Binary & ASCII How inputs are stored? –  Logic Gates The processing of data. –  Calculations & Understanding Data Streams
How does a computer work? INPUT DECODE PROCESS OUTPUT 001010010100101001101010101010101001010000101010111111100101
Representation of Data Binary is the BASE 2 number system which is represented as electronic voltage (on/off) or importantly as (0 or 1). Decimal Input Binary Control Binary Processing Decimal Output Hexadecimal Storage
Representation of Data The processor of computer system is required to convert between binary and decimal which are inputted and outputted from the system. Computers and programs are required to have a comprehensive knowledge regarding these conversions.
Understanding Binary Numbers Imagine you need to illuminate a room with a variable amount of light.  You need to be able to set the lighting level from total darkness (0 watts of light) right up to a maximum of 255 watts of light. You have 2 options...
One 255 watt bulb and a dimmer With the dimmer set at 0, there is no light, and set at full you would have 255 watts. Varying the position of the dimmer would give varying light output.
But there is a problem... How do you set an EXACT light level? The dimmer is difficult to accurately set the light level.
Too much guesswork! So to set the light level at say, 37 watts, you would have to turn the dimmer till it is putting out about 37 watts. Trouble is, no matter how accurate you try to be, it will always be an close estimation, not an exact amount!
So what about this? Imagine a set of 8 lightbulbs of varying outputs, from 1 watt right up to 128 watts, with each bulb twice as strong as the one next to it...
So what about this? To set exactly 37 watts of light, you could turn on the 32 watt bulb
So what about this? … then add in the 4 watt bulb…  (so now you have 36 watts)
So what about this? … and finally the 1 watt bulb. You now have EXACTLY 37 watts of light!
So what about this? If you read the bulbs from left to right, they go off, off, on, off, off, on, off, on, or in computer terms...
In other words... 00100101 = 37
Converting Binary To Decimal Binary is referred to as BASE-2 arithmetic. This is because it uses two states, on or off (0 and 1). The bits 0 and 1 are representative of the on/off circuits within a computer system. Computers work in binary, but humans use decimal numbers.
Converting Binary To Decimal To convert the following binary number:  11010011 2 It is best to draw up the following table. 1 2 4 8 16 32 64 128
Converting Binary To Decimal To convert the following binary number:  11010011 2 It is best to draw up the following table. Then insert the binary number below. 1 1 0 0 1 0 1 1 1 2 4 8 16 32 64 128
Converting Binary To Decimal Every time there is a 1 in the column the corresponding number is added to a total. 128 + 64 + 16 + 2 + 1 = 211 10 1 1 0 0 1 0 1 1 1 2 4 8 16 32 64 128
Converting Decimal To Binary To convert the following decimal number:  110 10 It is best to draw up the following table again. 1 2 4 8 16 32 64 128
Converting Decimal To Binary But this time find the largest number that will go into 110 10 In this case 128 doesn’t go into 110 but 64 does go into 110. So we place a 0 under 128 and a 1 under 64. 1 2 4 8 16 32 64 128
Converting Decimal To Binary But this time find the largest number that will go into 110 10 In this case 128 10  doesn’t go into 110 10  but 64 10  does go into 110 10 . So we place a 0 under 128 and a 1 under 64. 1 0 1 2 4 8 16 32 64 128
Converting Decimal To Binary The next step is to subtract 64 10  from 110 10 110 10  – 64 10  = 46 10 Our new number is 46 10  so we must find out what number goes into 46 10   1 0 1 2 4 8 16 32 64 128
Converting Decimal To Binary 32 10  goes into 46 10 So we place a 1 under the 32 column. And 46 10  – 32 10  = 14 10 1 0 1 2 4 8 16 32 64 128
Converting Decimal To Binary 32 10  goes into 46 10 So we place a 1 under the 32 column. And 46 10  – 32 10  = 14 10 1 1 0 1 2 4 8 16 32 64 128
Converting Decimal To Binary The process continues: 16 10  doesn’t go into 14 10 However, 8 10  goes into 14 10 14 10  – 8 10  = 6 10 1 1 0 1 2 4 8 16 32 64 128
Converting Decimal To Binary The process continues: 16 10  doesn’t go into 14 10 However, 8 10  goes into 14 10 14 10  – 8 10  = 6 10 1 0 1 1 0 1 2 4 8 16 32 64 128
Converting Decimal To Binary 4 10  goes into 6 10 6 10  – 4 10  = 2 10 And 2 10  goes into 2 10 Which leaves no remainder. 1 0 1 1 0 1 2 4 8 16 32 64 128
Converting Decimal To Binary 4 10  goes into 6 10 6 10  – 4 10  = 2 10 And 2 10  goes into 2 10 Which leaves no remainder. 0 1 1 1 0 1 1 0 1 2 4 8 16 32 64 128
ACTIVITY 1 Convert the following binary numbers to decimal. (Show working) 1001 2 10110110 2 Convert the following decimal numbers to binary. (Show working) 68 10 288 10
ACTIVITY 2 Identify why hexadecimal is used as a numbering system. Convert the following hexadecimal numbers to binary. (Show working) A45 16 28F 16 1001011101 2
Character Representation It is very important for the development of a key for the translation between the English (Human) and the Binary (Computer) so interaction could be initiated. So there were THREE different methods developed with most commonly used being ASCII.
Character Representation 1. BCD (Binary Coded Decimal Represents decimal values as a 4-bit binary format called nibbles. Very good for numbers, but not for other characters. i.e. only 16 characters can be represented.
Character Representation 2. EBCDIC Stands for: Extended Binary Coded Decimal Interchange. Represents an 8-bit code which gives 256 possible characters. Used primarily for IBM mainframe computers.
Character Representation 3. ASCII Stands for: American Standard Code for Information Interchange. In 1963 it first was used as a 7-bit code that would represent 128 characters. However has been changed to an 8-bit system known as Extended ASCII.

More Related Content

PPTX
Number system
PPTX
Binary computing
PPTX
Binary true ppt
PDF
รายงาน PHP - Know2pro.com
PPTX
1.1.2 HEXADECIMAL
PPTX
Binary Arithmetic
PPT
BINARY NUMBER SYSTEM
PDF
การจัดการข้อมูลให้เป็นสารสนเทศและระดับสารสนเทศ 
Number system
Binary computing
Binary true ppt
รายงาน PHP - Know2pro.com
1.1.2 HEXADECIMAL
Binary Arithmetic
BINARY NUMBER SYSTEM
การจัดการข้อมูลให้เป็นสารสนเทศและระดับสารสนเทศ 

What's hot (20)

PPT
Introduction to the Binary Number System
PPTX
The steps in long division
PPTX
Properties of Addition
PDF
โครงงานดอกไม ประจำจ งหว_ด
PPTX
урок 26 5 клас презентация
PDF
คู่มือ Kodu Game Lab (ภาษาไทย)
PPTX
Number system
PPTX
MS Excel Learning for PPC Google AdWords Training Course
PDF
Floating Point Numbers
PDF
MS Excel 2010 training module
PPTX
12. Heaps - Data Structures using C++ by Varsha Patil
PPTX
06 floating point
PDF
вся брошура Corel draw 2014
PPT
คอมพิวเตอร์ระบบปฏิบัติการเบื้องต้นบทที่ 4
PPT
Binary to Decimal Conversion
PPTX
Floating point Numbers
PPTX
Excel
PPTX
C Programming : Pointers and Arrays, Pointers and Strings
DOCX
Database Management Lab -SQL Queries
PPTX
Робота з текстом. Робота з векторними елементами.
Introduction to the Binary Number System
The steps in long division
Properties of Addition
โครงงานดอกไม ประจำจ งหว_ด
урок 26 5 клас презентация
คู่มือ Kodu Game Lab (ภาษาไทย)
Number system
MS Excel Learning for PPC Google AdWords Training Course
Floating Point Numbers
MS Excel 2010 training module
12. Heaps - Data Structures using C++ by Varsha Patil
06 floating point
вся брошура Corel draw 2014
คอมพิวเตอร์ระบบปฏิบัติการเบื้องต้นบทที่ 4
Binary to Decimal Conversion
Floating point Numbers
Excel
C Programming : Pointers and Arrays, Pointers and Strings
Database Management Lab -SQL Queries
Робота з текстом. Робота з векторними елементами.
Ad

Viewers also liked (13)

PPT
Reporting On The Testing Process
PPT
N301 Designing Circuits
PPT
Data types
PPTX
Meta Languages
PPT
Calculating Sec. 154 Patent Term Adjustments
PPT
Plp
PPT
Sdd Syntax Descriptions
PPT
Sdd Documentation
PPT
Integer Representation
PPT
Testing Software Solutions
PPT
End user development
PPT
Binary Arithmetic
PPT
The art of system and solution testing
Reporting On The Testing Process
N301 Designing Circuits
Data types
Meta Languages
Calculating Sec. 154 Patent Term Adjustments
Plp
Sdd Syntax Descriptions
Sdd Documentation
Integer Representation
Testing Software Solutions
End user development
Binary Arithmetic
The art of system and solution testing
Ad

Similar to Representation Of Data (20)

PPTX
Introduction to binary
PPT
Representation of Positive Numbers
PPT
SD & D Representing Positive Numbers
DOCX
Number system
PPTX
Binary, Decimal and Hexadecimal
PPTX
Number system
PPTX
Number system by ammar nawab
PPTX
Number Systems - AK.pptx
PPTX
Number system
PPT
Cit 1101 lec 02
PPTX
Chapter 3.pptx
PPTX
09 binary number systems
PPTX
04 chapter03 02_numbers_systems_student_version_fa16
PDF
Binary octal
PPTX
ELECTRICAL 411 L1 Digital Electronics.pptx
PPTX
Data Representation
PPTX
data representation
PDF
Digital Electronics- Number systems & codes
PPT
BEEE - Part B - Unit 3 PPT.ppt DL&CO - Unit 1 PPT.ppt
PDF
As Level Computer Science Book -1
Introduction to binary
Representation of Positive Numbers
SD & D Representing Positive Numbers
Number system
Binary, Decimal and Hexadecimal
Number system
Number system by ammar nawab
Number Systems - AK.pptx
Number system
Cit 1101 lec 02
Chapter 3.pptx
09 binary number systems
04 chapter03 02_numbers_systems_student_version_fa16
Binary octal
ELECTRICAL 411 L1 Digital Electronics.pptx
Data Representation
data representation
Digital Electronics- Number systems & codes
BEEE - Part B - Unit 3 PPT.ppt DL&CO - Unit 1 PPT.ppt
As Level Computer Science Book -1

More from gavhays (9)

PPT
Understanding Flip Flops
PPT
Programming Hardware Devices
PPT
Electronic Circuits
PPT
Boolean Algebra
PPT
Sdd Maintenance Of Software Solutions
PPT
S D D Program Development Tools
PPT
SDD Translation
PPT
The Role Of The Cpu
PPT
Interface Design
Understanding Flip Flops
Programming Hardware Devices
Electronic Circuits
Boolean Algebra
Sdd Maintenance Of Software Solutions
S D D Program Development Tools
SDD Translation
The Role Of The Cpu
Interface Design

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Empathic Computing: Creating Shared Understanding
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Spectroscopy.pptx food analysis technology
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Approach and Philosophy of On baking technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Diabetes mellitus diagnosis method based random forest with bat algorithm
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation_ Review paper, used for researhc scholars
Empathic Computing: Creating Shared Understanding
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
Spectroscopy.pptx food analysis technology
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Artificial Intelligence
Group 1 Presentation -Planning and Decision Making .pptx
cuic standard and advanced reporting.pdf
Getting Started with Data Integration: FME Form 101
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Approach and Philosophy of On baking technology

Representation Of Data

  • 1. The Software Developers View of Hardware Representation of Data within a Computer System
  • 2. Syllabus Representation of data within a computer system: Character representation: Hexadecimal ASCII Conversion between binary and decimal.
  • 3. Why does this mean? Basically, software cannot run without hardware. Therefore, this chapter we will concentrate on the following: How inputs (data) are represented by the computer? – Binary & ASCII How inputs are stored? – Logic Gates The processing of data. – Calculations & Understanding Data Streams
  • 4. How does a computer work? INPUT DECODE PROCESS OUTPUT 001010010100101001101010101010101001010000101010111111100101
  • 5. Representation of Data Binary is the BASE 2 number system which is represented as electronic voltage (on/off) or importantly as (0 or 1). Decimal Input Binary Control Binary Processing Decimal Output Hexadecimal Storage
  • 6. Representation of Data The processor of computer system is required to convert between binary and decimal which are inputted and outputted from the system. Computers and programs are required to have a comprehensive knowledge regarding these conversions.
  • 7. Understanding Binary Numbers Imagine you need to illuminate a room with a variable amount of light. You need to be able to set the lighting level from total darkness (0 watts of light) right up to a maximum of 255 watts of light. You have 2 options...
  • 8. One 255 watt bulb and a dimmer With the dimmer set at 0, there is no light, and set at full you would have 255 watts. Varying the position of the dimmer would give varying light output.
  • 9. But there is a problem... How do you set an EXACT light level? The dimmer is difficult to accurately set the light level.
  • 10. Too much guesswork! So to set the light level at say, 37 watts, you would have to turn the dimmer till it is putting out about 37 watts. Trouble is, no matter how accurate you try to be, it will always be an close estimation, not an exact amount!
  • 11. So what about this? Imagine a set of 8 lightbulbs of varying outputs, from 1 watt right up to 128 watts, with each bulb twice as strong as the one next to it...
  • 12. So what about this? To set exactly 37 watts of light, you could turn on the 32 watt bulb
  • 13. So what about this? … then add in the 4 watt bulb… (so now you have 36 watts)
  • 14. So what about this? … and finally the 1 watt bulb. You now have EXACTLY 37 watts of light!
  • 15. So what about this? If you read the bulbs from left to right, they go off, off, on, off, off, on, off, on, or in computer terms...
  • 16. In other words... 00100101 = 37
  • 17. Converting Binary To Decimal Binary is referred to as BASE-2 arithmetic. This is because it uses two states, on or off (0 and 1). The bits 0 and 1 are representative of the on/off circuits within a computer system. Computers work in binary, but humans use decimal numbers.
  • 18. Converting Binary To Decimal To convert the following binary number: 11010011 2 It is best to draw up the following table. 1 2 4 8 16 32 64 128
  • 19. Converting Binary To Decimal To convert the following binary number: 11010011 2 It is best to draw up the following table. Then insert the binary number below. 1 1 0 0 1 0 1 1 1 2 4 8 16 32 64 128
  • 20. Converting Binary To Decimal Every time there is a 1 in the column the corresponding number is added to a total. 128 + 64 + 16 + 2 + 1 = 211 10 1 1 0 0 1 0 1 1 1 2 4 8 16 32 64 128
  • 21. Converting Decimal To Binary To convert the following decimal number: 110 10 It is best to draw up the following table again. 1 2 4 8 16 32 64 128
  • 22. Converting Decimal To Binary But this time find the largest number that will go into 110 10 In this case 128 doesn’t go into 110 but 64 does go into 110. So we place a 0 under 128 and a 1 under 64. 1 2 4 8 16 32 64 128
  • 23. Converting Decimal To Binary But this time find the largest number that will go into 110 10 In this case 128 10 doesn’t go into 110 10 but 64 10 does go into 110 10 . So we place a 0 under 128 and a 1 under 64. 1 0 1 2 4 8 16 32 64 128
  • 24. Converting Decimal To Binary The next step is to subtract 64 10 from 110 10 110 10 – 64 10 = 46 10 Our new number is 46 10 so we must find out what number goes into 46 10 1 0 1 2 4 8 16 32 64 128
  • 25. Converting Decimal To Binary 32 10 goes into 46 10 So we place a 1 under the 32 column. And 46 10 – 32 10 = 14 10 1 0 1 2 4 8 16 32 64 128
  • 26. Converting Decimal To Binary 32 10 goes into 46 10 So we place a 1 under the 32 column. And 46 10 – 32 10 = 14 10 1 1 0 1 2 4 8 16 32 64 128
  • 27. Converting Decimal To Binary The process continues: 16 10 doesn’t go into 14 10 However, 8 10 goes into 14 10 14 10 – 8 10 = 6 10 1 1 0 1 2 4 8 16 32 64 128
  • 28. Converting Decimal To Binary The process continues: 16 10 doesn’t go into 14 10 However, 8 10 goes into 14 10 14 10 – 8 10 = 6 10 1 0 1 1 0 1 2 4 8 16 32 64 128
  • 29. Converting Decimal To Binary 4 10 goes into 6 10 6 10 – 4 10 = 2 10 And 2 10 goes into 2 10 Which leaves no remainder. 1 0 1 1 0 1 2 4 8 16 32 64 128
  • 30. Converting Decimal To Binary 4 10 goes into 6 10 6 10 – 4 10 = 2 10 And 2 10 goes into 2 10 Which leaves no remainder. 0 1 1 1 0 1 1 0 1 2 4 8 16 32 64 128
  • 31. ACTIVITY 1 Convert the following binary numbers to decimal. (Show working) 1001 2 10110110 2 Convert the following decimal numbers to binary. (Show working) 68 10 288 10
  • 32. ACTIVITY 2 Identify why hexadecimal is used as a numbering system. Convert the following hexadecimal numbers to binary. (Show working) A45 16 28F 16 1001011101 2
  • 33. Character Representation It is very important for the development of a key for the translation between the English (Human) and the Binary (Computer) so interaction could be initiated. So there were THREE different methods developed with most commonly used being ASCII.
  • 34. Character Representation 1. BCD (Binary Coded Decimal Represents decimal values as a 4-bit binary format called nibbles. Very good for numbers, but not for other characters. i.e. only 16 characters can be represented.
  • 35. Character Representation 2. EBCDIC Stands for: Extended Binary Coded Decimal Interchange. Represents an 8-bit code which gives 256 possible characters. Used primarily for IBM mainframe computers.
  • 36. Character Representation 3. ASCII Stands for: American Standard Code for Information Interchange. In 1963 it first was used as a 7-bit code that would represent 128 characters. However has been changed to an 8-bit system known as Extended ASCII.