Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Management Information Systems Chapter 3 Computer Basics HTM 304 Spring 06.

Similar presentations


Presentation on theme: "Introduction to Management Information Systems Chapter 3 Computer Basics HTM 304 Spring 06."— Presentation transcript:

1 Introduction to Management Information Systems Chapter 3 Computer Basics HTM 304 Spring 06

2 2 Computer Basics Hardware and Software Basics – group field study. Digital Boolean Logics Binary Number Systems Computer Data

3 3 Introduction to Digital We are in the digital age Digital TV, Digital Phone, Digital Music Channel, … What is digital? “analog” – sine wave“Digital” – square wave Value -- Amplitude many possible values Value: -- High / Low voltage two possible values

4 4 Benefit of using digital signal Signal can be stored and processed more precisely Allow complicated computation task Easy to recover from small interference Signal Weakens During Transfer Weaken, but still recoverable

5 5 Boolean Logics Square wave only contain two signals: High Voltage, representing Logic 1 Low Voltage, representing Logic 0 Logic 0Logic 1 Electric Signals0 V5 V LogicsFalseTrue Numeral Digits01 All the complicated function a computer used is achieved via digital circuits combined with basic logic gates

6 6 Logic Gates Basic Logic Gate Products (e.g. TI 7645) A variety chips and circuits composes a digital circuit, achieving certain functionality, e.g. a computer Example: a chip with four and gates 1 1 1

7 7 Logic Functions (1) And Function: If both (all) inputs are True, then the output is True. Example: If tomorrow is rainy AND you have to go to work, you should prepare for an umbrella. Rainy? 1– True, 0 – False Work tomorrow? 1– True, 0 – False Need an umbrella? 1– True, 0 – False Formula: 0 and 0 = 00 and 1 = 0 1 and 0 = 0 1 and 1 = 1 Rule: 0 and anything is still 0, 1 and anything is anything.

8 8 Logic Functions (2) Or Function: If either (any) input is True, then the output is True. Example: If I get a raise OR the bank gives me a loan, then I can buy a new car. Raise? 1– True, 0 – False Loan?1– True, 0 – False New Car? 1– True, 0 – False Formula: 0 or 0 = 00 or 1 = 1 1 or 0 = 1 1 or 1 = 1 Rule: 0 or anything is still anything, 1 or anything is 1.

9 9 Logic Functions (3) Not Function: If input is True, then the output is False. Example: If your final score if below 60, you cannot pass. <60? 1– True, 0 – False pass? 1– True, 0 – False Formula: not 0 = 1not 1 = 0

10 10 Exercise Handout: Set 1 Logic Operations

11 11 Binary Number System How computer computes with only 0-1s? In decimal number system, there are 10 unique digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 In binary number system, there are only 2 unique digits: 0 and 1  Base 10 (decimal) 01234567 Base 2 (binary) 01?????? Exercise: Handout Set 2.

12 12 Binary-to-Decimal Conversion (1) Rule 1: Eg: 10 2 =2 10, 100 2 =4 10, 100 2 =8 10 10,000,000,000 2 = ? Rule 2: Eg: 11 2 =2 2 -1=3 10, 111 2 =2 3 -1=7 10 1,111,111,111 2 = ?

13 13 Binary-to-Decimal Conversion Think what a decimal number really represent? 537 10 = 5*100 + 3*10 + 7 = 5 * 10 2 + 3*10 1 +7*10 0 -- base 10 system 84533 10 = 8*10 4 +4*10 3 + 5*10 2 + 3*10 1 +3*10 0 Binary System – base 2 system 1001 2 = 1*2 3 + 0*2 2 + 0*2 1 +1*2 0 = 8 + 0 + 0 + 1 = 9 10 Use the following table to convert: Binary number 1001 Place Value 8421 8001 9 10 Sum up the last row to get the decimal number

14 14 Exercise Handout Set 3

15 15 Decimal-to-Binary Conversion How to represent 98 10 using a binary number? A short division method – divide the number by 2 2) 98 remainder 490 241 120 60 30 11 01 Read the remainders from below to above: 98 10 = 1100010 2 Continue until you get 0 2) ________

16 16 Exercise Convert the following decimal numbers to binary numbers 127 96 231 37 51 255

17 17 Binary Addition Basic Rules: 0 + 0 = 0 0 + 1 = 1 1 + 1 = 0 and a carry of 1 1 + 1 + 1 = 1 and a carry of 1 Examples 1001 + 0011 1100 1110 + 1000 10110 1010 + 0111 10001

18 18 Exercises Handout Set 4

19 19 Digital Signals in computer How computer recognizes numbers physically?

20 20 Binary Numeral System Computers represent data using binary digits, called bits. Bits are used for computer data because they are easy to represent physically. A switch can either be closed or open. Computers use bits for two purpose: Instruction and Data For example: a sequence 0111100010001110 means adding two numbers together.

21 21 Computer Data All computer data are represented by bits. The data can be numbers, characters, currency amounts, photos, recordings, or whatever. Bits are grouped into 8-bit chunks called bytes. The pros and cons of having fixed size bytes. What is the largest value for a byte? E.g. An IP address uses 4 bytes storage

22 22 Exercise: Computer A is broadcasting its IP address 144.2.45.7 to the network. How the electric signals are sent via the network? Binary Sequence 10010011 00000010 00101101 0000 0111

23 23 Using Bits to Represent Information Use Character Representation Codes ASCII - American Standard Code for Information Interchange Check out the ASCII Table for digital sequence of the word “Hello” Each letter (“character”) is represented using 1 Byte = 8 bits LettersBytes “H”0100 1000 “e”0110 0101 “l”0110 1100 “l”0110 1100 “o”0110 1111

24 24 Important Storage-Capacity Terminology Exercise: 1.Estimate the size of a text file with approximately 1000 characters 2.A 256 color bitmap graph uses one byte to store color information for each pixel. Estimate the size of a bitmap file with 800*600 pixels

25 25 Ambiguity of Binary Data A binary sequence 0100 0001 can be used to represent both decimal value 65 and the character A This ambiguity is more than curiosity; virus authors and other cyber-criminal use it to their advantage. Sometimes, bit-level encryption is used to insure secure data storage and transmission over the net. Binary Logic Operation is used

26 26 A simple example of encryption LettersBytes Encrypted Code Encrypted Letter “H”0100 10000100 1101M “e”0110 01010110 0000` “l”0110 11000110 1001i “l”0110 11000110 1001i “o”0110 11110110 1010j E.g. Reverse the logic on the 1 st and 3 rd bits from the right

27 27 Exercise Handout Set 5

28 28 Summary Learning Binary to understand more about computer Logic Operations: AND, OR, NOT Count Binaries Conversion: binary  decimal, decimal  binary Binary addition Use bytes to represent information 1 byte = ? bits Check ASCII table for information

29 29 Field Study Assignment Read the handout and Chapter 3 Find your group member Prepare a presentation to address the questions in the handout.


Download ppt "Introduction to Management Information Systems Chapter 3 Computer Basics HTM 304 Spring 06."

Similar presentations


Ads by Google