Computer Data Types Basics of Computing.

Slides:



Advertisements
Similar presentations
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
Advertisements

Some computer fundamentals and jargon Memory: Basic element is a bit – value = 0 or 1 Collection of “n” bits is a “byte” Collection of several bytes is.
The Binary Numbering Systems
Representing Data, Pictures, Time, and Size in Computer
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Bits and Bytes.
COMPUTER FUNDAMENTALS David Samuel Bhatti
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
9/15/09 - L3 CodesCopyright Joanne DeGroat, ECE, OSU1 Codes.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Agenda Data Representation – Characters Encoding Schemes ASCII
Introduction to Number Representation F451 Year 10 Computing Binary Numbers Binary Numbers Sign/Magnitude Sign/Magnitude 2s Complement 2s Complement Binary.
Bits & Bytes: How Computers Represent Data
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Chapter 4: Representation of data in computer systems: Characters OCR Computing for GCSE © Hodder Education 2011.
Input & Output: Console
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Binary Arithmetic & Data representation
INFOCODING BASICS & EXAMPLES OF CURRENT USE Introduction to Computer Science Using Ruby (c) 2010 Gideon Frieder.
Copyright © 2002 W. A. Tucker1 Chapter 7 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
Number Systems Spring Semester 2013Programming and Data Structure1.
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
Scott Marino MSMIS Kean University MSAS5104 Introduction to Programming with Data Structures and Algorithms Week 2 Scott Marino.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Agenda Character representation Numerical Conversions ASCII EBCDIC
Chapter 7 C supports two fundamentally different kinds of numeric types: (a) integer types - whole numbers (1) signed (2) unsigned (b) floating types –
OFF = 0 ON = 1 = 63 BINARY system
DATA REPRESENTATION 4 Y. Colette Lemard February 2009.
ASCII AND EBCDIC CODES By : madam aisha.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
THE CODING SYSTEM FOR REPRESENTING DATA IN COMPUTER.
1.4 Representation of data in computer systems Character.
Introduction to computer science Lec2 cs111. Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8- bit character encoding used mainly on.
There are 10 different types of people in the world. Those who understand binary and those that don’t.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
A LECTURE NOTE. Introduction to Programming languages.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Programming and Data Structure
Data Representation.
Number Representation
Data Representation Binary Numbers Binary Addition
Data Transfer ASCII FILES.
Bits & Bytes How Computers Represent Data
EPSII 59:006 Spring 2004.
Why use Binary? There are only four rules for addition in binary compared to 100 in decimal [0+0=0 ; 0+1=1 ; 1+0=1; 1+1=10]
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Data Representation ASCII.
Lecture 3 ISE101: Computing Fundamentals
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Presenting information as bit patterns
COMS 161 Introduction to Computing
ECB2212-Digital Electronics Codes
COMS 161 Introduction to Computing
Encoding and Sending Formatted Text
Digital Encodings.
INFOCODING BASICS & EXAMPLES OF CURRENT USE
Learning Intention I will learn how computers store text.
Understanding Binary Numbers.
Presentation transcript:

Computer Data Types Basics of Computing

Data Types Character Byte Boolean Integer Double Long String

Character Data Type Stores 1 Character “Size” dependant upon language ASCII or EBCDIC Storage Examples A 2 “ -

ASCII Character Set ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as 'a' or '@' or an action of some sort.

ASCII Character Set ASCII was developed a long time ago and now the non-printing characters are rarely used for their original purpose. ASCII was actually designed for use with teletypes and so the descriptions are somewhat obscure.

ASCII Character Set Notepad.exe creates ASCII text, or in MS Word you can save a file as 'text only'

EBCDIC Character Set EBCDIC (Extended Binary Coded Decimal Interchange Code) is a character encoding set used by IBM mainframes. IBM mainframes and midrange systems such as the AS/400 tend to use a wholly incompatible character set primarily designed for ease of use on punched cards.

Why is EBCDIC Better than ASCII? EBCDIC is easier to use on punched cards Included the "cent sign" (¢) character that ASCII does not.

Why ASCII Better Than EBCDIC? EBCDIC is a mess. The lack of contiguous character blocks make coding a real pain. Most of the world runs on ASCII. Even in IBM mainframe environments, host PCs, terminals and printers may use ASCII as their native character set.

Why Is ASCII Better Than EBCDIC? Standard versions of EBCDIC miss out the ASCII characters []\{}^~¦and include the ¢ sign, so there isn't even a direct match between them.

Why Is ASCII Better Than EBCDIC? Worse still, some of the missing ASCII characters are in the UUencoding range, so it will tend to corrupt standard Internet mail attachments.

Byte Data Type 8 Bits Basically 8 position binary number

Boolean Data Type Yes/No True/False A/B Size dependant upon language

Integer Data Type -65536 to 65536 Size usually 2 bytes INTEGER only No decimals No Fractions

Double Data Type -1.79769313486231570E+308 through - 4.94065645841246544E-324 for negative values and from 4.94065645841246544E- 324 through 1.79769313486231570E+308 for positive values. Size - usually 8 bytes

Long Data Type -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807 Integer Values Only Size - Usually 8 bytes

String Data Type Groups of Characters Usually Specific Size Defined by Programmer Examples APPLE SMITH 888-33-9999