CS161 Computer Programming Instructor: Maria Sabir Fall 2009 Lecture #1.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Information Representation
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Digital electronics allow us to manipulate all types of information as digits (1s and 0s) in order to store and manage the information more efficiently.
Computer Science Basics CS 216 Fall Operating Systems interface to the hardware for the user and programs The two operating systems that you are.
COMPUTER APPLICATIONS Mr. Toscano Computer Concepts Lesson Objectives Students are introduced to the differences between computer software and computer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Essential Computer Concepts. XP New Perspectives on Microsoft Office 2007: Windows XP Edition2 What Is a Computer? A computer is an electronic device.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Programmable Logic Controllers
1 CSC103: Introduction to Computer and Programming Lecture No 2.
Topics Introduction Hardware and Software How Computers Store Data
XP Practical PC, 3e Chapter 16 1 Looking “Under the Hood”
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Introduction OF Enterprise Application Development.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
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.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Introduction Lecture 01.
The Hexadecimal Number System and Memory Addressing ISAT 121.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
EET 250 Number systems. Introduction to Number Systems While we live in a world where the decimal number is predominant in our lives, computers and digital.
Tolo-e-aftab higher education 1 th semester Bcs 1/2/1392 MINISTRY OF HIGHER EDUCATION.
Data Representation Conversion 24/04/2017.
Computer Software Types Three layers of software Operation.
Scott Marino MSMIS Kean University MSAS5104 Introduction to Programming with Data Structures and Algorithms Week 2 Scott Marino.
Chapter 3 The Power of HEX Finding Slivers of Data.
INFORMATION TECHNOLOGY
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
MECH1500 Chapter 3.
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
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.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
INTRO. To I.T Razan N. AlShihabi
Binary Representation in Text
Binary Representation in Text
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Computer Applications
Number Systems and Codes
Computer Science II Chapter 1.
An Overview of the Computer System
Chapter 1: An Overview of Computers and Programming Languages
Topics Introduction Hardware and Software How Computers Store Data
BINARY CODE.
System Programming and administration
Looking Inside the machine (Types of hardware, CPU, Memory)
An Overview of the Computer System
COMPUTER SOFT WARE Software is a set of electronic instructions that tells the computer how to do certain tasks. A set of instructions is often called.
Computer Fundamentals
Topics Introduction Hardware and Software How Computers Store Data
Number Systems Lecture 2.
Introduction to Computer Programming
Learning Intention I will learn how computers store text.
Networks & I/O Devices.
Chapter 3 - Binary Numbering System
Dr. Clincy Professor of CS
Presentation transcript:

CS161 Computer Programming Instructor: Maria Sabir Fall 2009 Lecture #1

Introduction To Computers  Computer Hardware and Software,  Number system,  Computer data : Binary notation, Bits & Bytes,  ASCII coding system,  Computer Organization,  Memory concepts,  Files,  Operating system

Introduction To Computers  What is a COMPUTER?  A computer is a device that works under the control of stored programs, automatically accepting, storing, and processing data to produce information that is the result of that processing. INPUT PROCESS STORAGE OUTPUT DATA The basic functions of a Computer

Computer Hardware and Software Hardware Refers to objects that you can actually touch, like disksdisks, disk drives, display screens, keyboards, printers, boards, and chips.disk drivesdisplay screenskeyboardsprinters boardschips Software Untouchable, Software exists as ideas, concepts, and symbols, but it has no substance.

Types of software System software  System software helps run the computer hardware and computer system. It includes combination of the following: System software  device drivers, operating systems, servers, utilities, windowing systems device driversoperating systemsservers utilitieswindowing systems  The purpose of systems software is to unburden the applications programmer from the details of the particular computer complex being used, including such accessory devices as communications, printers, readers, displays and keyboards, and also to partition the computer's resources such as memory and processor time in a safe and stable manner.

Types of software  Programming software  Programming software usually provides tools to assist a programmer in writing computer programs, and software using different programming languages in a more convenient way. The tools include: Programming softwarecomputer programs  compilers compilers  debuggers debuggers  interpreters interpreters  linkers linkers  text editors text editors  An Integrated development environment (IDE) is a single application that attempts to manage all these functions.Integrated development environment

Types of software Application software  Application software allows end users to accomplish one or more specific (not directly computer development related) tasks. Typical applications include: Application softwaretasks  industrial automation industrial automation  business software business software  computer games computer games  quantum chemistry and solid state physics software quantum chemistry and solid state physics software  telecommunications (i.e., the internet and everything that flows on it) telecommunicationsthe internet

Types of software  databases databases  educational software educational software  medical software medical software  military software military software  molecular modeling software molecular modeling software  photo-editing photo-editing  spreadsheet spreadsheet  Word processing Word processing  Decision making software Decision making software Application software exists for and has impacted a wide variety of topics.

Numbering System The term computer numbering formats refers to the schemes implemented in digital computer and calculator hardware and software to represent numbers.computer calculator numbers Binary Octal Decimal Hexadecimal

Binary (Bits, bytes, nibbles) BIT The concept of a bit can be understood as a value of either 1 or 0, on or off, yes or no, true or false, or encoded by a switch or toggle of some kind. A single bit must represent one of two states:bit encodedtogglestates one-digit binary value: decimal value:01

Bits a string of two bits together are able to represent increasingly many unique values:string two-digit binary value: decimal value:

Bits  bits in series (b): number of possible values (N): b = N

Bytes  A byte is a sequence of eight bits or binary digits that can represent one of 256 possible values.byte  Modern computers process information in 8-bit units, or some other multiple thereof (such as 16, 32, or 64 bits) at a time.informationmultiple  A group of 8 bits is now widely used as a fundamental unit, and has been given the name of octet.octet  A computer's smallest addressable memory unit (a byte) is typically an octet, so the word byte is now generally understood to mean an octet.byte

Nibbles A unit of four bits, or half an octet, is often called a nibble (or nybble). It can encode 16 different values, such as the numbers 0 to 15.nibble numbers 0000 = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal = decimal 15

Decimal, Octal and Hexadecimal Numbers  In the decimal system, there are 10 digits (0 through 9) which combine to form numbers as follows:  In an octal system, there are only 8 digits (0 through 7): That is, an octal "10" is the same as a decimal "8", an octal "20" is a decimal 16, and so on.  In a hex system, there are 16 digits (0 through 9 followed, by convention, with A through F):AF A B C D E F A 1B... That is, a hex "10" is the same as a decimal "16" and a hex "20" is the same as a decimal "32".

Assignment Conversion between bases Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Decimal Binary to Hexadecimal And vice versa

ASCII Coding System American Standard Code for Information Interchange (ASCII), pronounced / ˈ æski/ [1] is the standard code used for information interchange and communication between data processing systems, including Internet./ ˈ æski/ [1] The ASCII character set (or ASCII table) initially contained bit coded characters including alphabetic, numeric, control and graphic characters. It has since been extended to include system or country specific characters

ASCII Coding System

Memory 19 1 byte 2 bytes  Memory is divided into blocks  Each block can store one byte of data.  Data consisting of multiple byte is stored in multiple blocks  Data always has a label which is used to access that memory location later.