Many information systems are operated every day by people who couldn t tell you the

Size: px
Start display at page:

Download "Many information systems are operated every day by people who couldn t tell you the"

Transcription

1 CHAPTER 15: NUMBER SYSTEMS You don t have to be a mathematician to have a feel for numbers. John Forbes Nash, Jr. Many information systems are operated every day by people who couldn t tell you the difference between Base-2 and second base. Still, a basic understanding of number systems is more than a sadistic ritual disguised as an interesting mental exercise; it gives insights into how computers operate. NUMBERING SYSTEMS When you look at this image, you may see a bunch of numbers: These numerals are representations of numbers in a given numbering system specifically, in Base-10. A number system gives you the rules for how to represent numbers. Without a numbering system, we would have to have a different symbol for every single number. A number system allows us to write twelve as 12 instead of, say,, or some other odd thing Humans commonly use a number system called Base- 10. Ostensibly, we developed this because we had ten fingers. When we count, it looks like this: 0 zero 1 one 2 two 3 three 4 four 5 five 6 six 7 seven 8 eight 9 nine 10 ten Note that in Base 10, the number ten doesn t have a unique symbol. Instead, when you get to ten, you move 1 to the tens column and place a zero in the ones column. One way to look at this is to say we have 1 ten and 0 ones. Similarly, if we were to continue ninety-six 97 ninety-seven 98 ninety-eight 99 ninety-nine 100 one hundred When we get to one hundred, we place a one in the hundreds column, a zero in the tens column, and a zero in the ones column. In this way, we are saying we have 1 hundred and 0 tens and 0 ones. Continuing nine hundred ninety-six 997 nine hundred ninety-seven 998 nine hundred ninety-eight 999 nine hundred ninety-nine 1000 one thousand When we get to one thousand, we are saying we have 1 thousand plus 0 hundreds plus 0 tens plus 0 ones. Let s see if we can organize this idea graphically for 8,925: Thousand Hundred Ten One 8, x 1 5 x x x 1, ,000 8,925

2 PAGE 94 CHAPTER 15: NUMBER SYSTEMS WAYNE THOMAS SPIES Thus, 8,925 is 8 thousands plus 9 hundreds plus 2 tens plus 5 ones. At this point, you are either nodding in agreement, or just nodding off. It seems to be a needlessly complicated way of doing something with which we are very, very familiar. This familiarity has hidden an interesting idea, but first we must refresh your math skills. EXPONENTIALS You know that 2 2, which we read as two squared, or two to the second power, means 2 x 2, or 4. The exponent, 2, says how many times the base is multiplied times itself. For example: 2 1 = = 2 x 2 = = 2 x 2 x 2 = = 2 x 2 x 2 x 2 = = 2 x 2 x 2 x 2 x 2 = = 2 x 2 x 2 x 2 x 2 x 2 = 64 MULTIPLYING POWERS Staying in review mode, you will remember that: a x x a y (x + y) = a This means that: 2 2 x 2 4 = 2 (2 + 4) = 2 6 = x 2 4 = 2 (1 + 4) = 2 5 = x 2 5 = 2 (5 + 5) = 2 10 = 1,024 ZERO POWER Following this logic, this expression must be true: 2 0 x 2 4 = 2 (0 + 4) = 2 4 Therefore: 2 0 x 2 4 = 2 4 can only be true if 2 0 = 1. That looks strange, but it is true. Any number to the zero power is equal to 1. BASE-10 REVISITED Let s return to our base-10 system. Million Hundredthousand Tenthousand Thousand Hundred Ten One 1,000, ,000 10,000 1, , 4 6 8, Another way of saying 1 is Another way of saying 10 is Another way of saying 100 is Do you see the pattern in the columns? ,000, ,000 10,000 1, OTHER BASES If our ancient ancestors had thought to take off their tennis shoes, they might have counted on their fingers and toes, bequeathing Base-20 to us. Indeed, there is no reason why we couldn t have Base-2, Base-8, Base-16, or Base-156, for that matter. You may think that there is something special about Base-10. There isn t. Every single mathematical law or operation works in every other base the only difference is how we represent numbers. Two plus three equals five and = 5; how you represent the numbers simply doesn t matter. BASE-12 Indeed, humans have not always used Base-10. The earliest numbering system was in Base-12, known as duodecimal or dozenal. We see which we now see in: twelve inches in a foot, twelve months in a year, twelve items in a dozen, twelve signs in the zodiac, twelve hours in a day (and another twelve in a night), circles measured in thirty * twelve degrees, teens begin at thirteen, twelve tones in a chromatic scale, and, twelve pence in a shilling (in merry olde England) Some people argue that for simple, everyday math, Base-12 may be superior to Base-10. For instance, if you have a round number of cookies in Base-10 ten, a hundred, a thousand, or whatever and you want to divide them among three friends, what do you do? Ten is divisible only by five and two. If you have a round number of cookies in Base-12 say, a dozen, one hundred forty-four, or whatever

3 WAYNE THOMAS SPIES MANAGEMENT INFORMATION SYSTEMS PAGE 95 and you want to divide them, you see that twelve is divisible by 2, 3, 4, and 6. Also while the decimal-centric world thinks that counting to ten on one s fingers is an achievement, note that by using the thumb as a pointer, and counting each finger segment, one can count to twelve easily on each hand. When we count in Base-12, remember that, just as Base- 10 has no symbol for ten, Base-12 has no symbol for twelve. You simply carry the one and add a zero. Note that we will also need a new symbol for ten and eleven: 0 zero 1 one 2 two 3 three 4 four 5 five 6 six 7 seven 8 eight 9 nine X ten (the symbol X, in this context, is pronounced dek ) E eleven (the symbol E is pronounced el ) 10 twelve 11 thirteen 12 fourteen and so on. NUMBER SYSTEMS & COMPUTERS In the computer field, we often encounter four number systems: Base-2, a binary (BIN) system; Base-8, an octal (OCT) system; Base-10, a decimal (DEC) system; and, Base-16, a hexadecimal (HEX) system. BASE-2 Lacking fingers, your computer uses tiny switches to count. A switch must be either on or off; which we represent as 1 or 0. Remember, in Base-10, there is no unique symbol for ten. When you get to ten, you put a 1 in the tens column and a 0 in the ones column. The same idea works in other systems, including Base-2. Just as there is no symbol for ten in Base- 10, there is no unique symbol for two in Base-2. When you get to two, you put a 1 in the twos column and a 0 in the ones column. Counting to ten in Base-2: 1 one 10 two 11 three 100 four 101 five 110 six 111 seven 1000 eight 1001 nine 1010 ten This looks strange the first time you see it, but as you become familiar with manipulating these numerals, it gets easy quickly. The first thing to observe is that, in Base-2, 10 is not the symbol for ten; it s the symbol for two. Obviously, when you go back and forth between number systems, things can get a little hairy if you are unclear which system you are in. To solve this problem, you might mark numerals with subscripts, reflecting their base; for example: = Remember how we determined the columns in Base-10: ,000, ,000 10,000 1, It works the same way in Base-2: "There are only 10 types of people: those who understand binary, and those who don t. CONVERT BINARY TO DECIMAL We can use this to convert any number, in Base-2, into its equivalent in Base-10. For example, let s convert: to Base-10:

4 PAGE 96 CHAPTER 15: NUMBER SYSTEMS WAYNE THOMAS SPIES x 1 1 x x x x x x x BITS Each 0 or 1 represents the smallest piece of information that a computer can use. This is called a binary digit, or bit. 1 To help understand this, consider a digital watch: What time is this? It is 3:45. Like the switches in a computer, each bar in a digital watch display is the smallest piece of information. Like those switches, bar in a digital watch face can be on or off: Now, what time is this? Time to get a new watch! As you can see, the smallest piece of information on a watch display is meaningless by itself. To display numbers, a digital watch must combine these basic elements into meaningful groups. BYTES Off Similarly, a computer must combine its basic elements bits into meaningful groups. These groups are called bytes. On Just as each number of a digital watch comprises several bars, each of which can be turned on or off to express different values, a byte comprises a set of eight bits, each of which can be turned on or off to create different characters. Each individual character such as A, B, C, 1, 2, or 3 can be expressed by one single byte. The word hello is five bytes long. The phrase : 7 bytes is seven bytes long the space takes up a byte, too. You remember that kilo- is the Greek prefix for 1,000. Thus we say: 1 kilogram = 1,000 grams 1 kilometer = 1,000 meters 1 kilobyte =??? So what is a kilobyte? It s 1,000 bytes, right? Wrong! The problem is fingers or the lack of them. We carbon units have ten fingers. Our idea of a round number is 10 raised to a power: 10 2 (100), 10 3 (1,000), 10 6 (1 million), and so on. A computer has switches instead of fingers. Each switch can be either on or off. As a result, we say that a computer performs its calculations in binary, or base-2. Its idea of a round number is 2 raised to a power: 2 10, 2 20, 2 30, and so on. We call 2 10 bytes a kilobyte, but if we do the math: 2 10 bytes = 1,024 bytes Because that s approximately 1,000, we utilize some semantic rounding and call it a kilobyte, abbreviated KB. Similarly, we refer to a megabyte (MB) as a million bytes, when it is actually 2 20 : 2 20 bytes = 1,048,576 bytes = 1 MB Finally, a gigabyte (GB) is approximately a billion bytes: 2 30 bytes = 1,073,741,824 bytes = 1 GB Thus, we casually refer to a kilobyte as being 1,000 bytes, a megabyte as 1,000 KB, and a gigabyte as 1,000 MB, when, in reality, a kilobyte is 1,024 bytes, a megabyte is 1,024 KB, and a gigabyte is 1,024 MB. The capacity of a computer s memory is measured in megabytes, as is storage capacity. ASCII TEXT You will recall that one byte is composed of eight bits. What is the biggest number that can be expressed with those eight bits?

5 WAYNE THOMAS SPIES MANAGEMENT INFORMATION SYSTEMS PAGE 97 The largest number that can be represented by eight bits, or one byte, is , which equals 255. If we assigned a character to each of those numbers, we could represent 255 characters 256, if we include That would be more than enough characters to represent each of the letters of the alphabet in upper and lower case, punctuation marks, numbers, and special characters, and still have plenty left over for other things. Someone has done it for us. 3 The American Standard Code for Information Interchange (ASCII, pronounced ASK-ee ) is a standard that assigns the 256 characters of the ASCII character set to the 256 numbers that can be represented by 1 byte. These characters include letters, numbers, punctuation, and control characters (such as line feed, carriage return and tab), but no formatting. Text composed totally of ASCII characters is called, imaginatively, ASCII text, or, sometimes, DOS text, or even plain text. Whatever it s called, it can be read by every computer, regardless of its operating system. The set of ASCII characters appears in Appendix A. ADDING BINARY We add in Base-2 just as we add in Base-10. For example: ? As you would expect: = = = 11 Watch as we carry digits to the next column: The solutions are: Still, there is an easier way to add a number to itself in Binary. Do you see the pattern here? HEXADECIMAL x x x x x x x + x x x x x x x x x x x x x x 0 In the decimal, or Base-10 system, we count like this: Hexadecimal is a Base-16 number system. Just as Base-10 doesn t have a unique character for ten, Base-16 doesn t have a unique character for sixteen but it does have unique characters for ten, eleven, twelve, thirteen, fourteen, and fifteen: A B C D E F 10 In hexadecimal, B is another way of writing 11 and E is another way of writing 14. CONVERT HEX TO DECIMAL We can use this to convert any number, in Base-16, into its equivalent in Base-10. For example, let s convert: Now, what happens when we add a number to itself? Here are two examples: to Base-10: x 1 5 x

6 PAGE 98 CHAPTER 15: NUMBER SYSTEMS WAYNE THOMAS SPIES Easy enough. Let s try another; convert: B8 16 to Base-10 (remember: B 16 is eleven, or ): B 8 x 1 8 x NOTES 1 The word bit was coined by Claude Shannon, Bell System Technical Journal, July Computer scientist Donald E. Knuth awards a hexadecimal dollar to anyone who finds an error in his book. Its value? $2.56. I will leave it to you to figure out why this is so. 3 ASCII was proposed by ANSI in 1963, and adopted in 1968, as a lingua franca for disparate computer systems. It was primarily the product of Bob Bemer, one of the giants of Computer Science.

7 LAB 5: CALCULATOR Windows comes with a simple calculator that can not only perform arithmetic, it can also help us understand number systems. CALCULATING Calculator can perform all the basic arithmetic operations you would expect. For example, to add three plus two, you would type: Enter Although the presence of all those highly clickable buttons is tempting, type numbers from the either the Number Pad or Alpha-pad instead of clicking with your mouse. Similarly, type arithmetic operators instead of reaching for that mouse: + addition - * / subtraction multiplication division Pressing Enter is the same as clicking. The scientific view includes all the usual trigonometric, exponential, and logical functions that you would expect to find on a hand-held scientific calculator. CUT & PASTE To copy the results of a calculation to the document on which you are working: Step 1: Perform the calculation in Calculator. Step 2: Press Ctrl C to copy the results to the Clipboard. There is no need to click in the results window or select anything. Step 3: Press Alt Tab to move to the application where you want to place the figures. Step 4: Press Ctrl V to paste it at the cursor. MEMORY In the following image, there is a summary of the Memory function keys, which appear on both the Standard and Scientific calculators: Recall from memory Save to memory KILOBYTE REVISITED On page 106, we learned that a kilobyte is not 1,000 bytes, but that it is 2 10, or 1,024 bytes. We can use Calculator to test our math: Step 1: Open Calculator. Step 2: From the pull-down menu, select View, Scientific view. Step 3: Type: 2 Step 4: Click. Clear memory Subtract from memory Add to memory Step 5: Type: and press Enter. Yes, 2 10 = 1, LET S PLAY! How do we express two-hundred in binary? We could count it out, of course, but we can also use Calculator: Step 1: Open Calculator.

8 PAGE 100 LAB 6: CALCULATOR WAYNE THOMAS SPIES Step 2: From the pull-down menu, select View, Programmer view. 14 Step 3: To convert this decimal to Hexadecimal, click the Hex(adecimal) option. The result is E. Let s try this again. This time, let s convert a number from Base-10 into Base-16: Step 1: Click the Dec(imal) option. Step 2: Type: 37 Step 3: To convert this decimal to Hexadecimal, click the Hex(adecimal) option. The result is 25. Figure 146 Step 3: Note the section along the left that specifies the number system you are in: Hex (= Base 16) Dec (= Base-10) Oct (= Base-8) Bin ( = Base-2) Step 4: Select the Dec (i.e., Base-10) option. Step 5: Type 200. Step 6: Select the Bin (i.e., Base-2) option. Calculator will display Now, what would that be in Base-16? Step 7: Select the Hex (i.e., Base-16) option. Calculator will display C8. ANOTHER EXAMPLE Let s test the assertion that: = E 16 Step 1: From Calculator s Programmer view, click the Dec(imal) option. Step 2: Type: ADD A NUMBER TO ITSELF REVISITED Back on page 97, we demonstrated how to add a number to itself in Binary. Here is one of the examples: Now, let s test this with Calculator: Step 1: With Calculator opened in the Programmer view, click the Bin(ary) option. Step 2: Type: 1010 note that the preceding zeros are assumed. Step 3: Press +. Step 4: Type: Step 5: Press Enter The results? 10100, just as we predicted. CONVERT HEX TO DECIMAL We can use this to convert any number, in Base-16, into its equivalent in Base-10. For example, let s convert:

9 WAYNE THOMAS SPIES MANAGEMENT INFORMATION SYSTEMS PAGE 101 to Base-10: The result is 25. Again, we re right x 1 5 x Easy enough. Let s try another; convert: B8 16 to Base-10 (remember: B 16 is eleven, or ): B 8 x 1 8 x ONE LAST EXAMPLE FF is the biggest number we can express with two digits in hexadecimal. What is FF in Hex, when you convert it to Base-10? Step 1: Open Calculator. Step 2: From the pull-down menu, select View, Programmer view. Step 3: Click the Hex option. Step 4: Type: FF Step 5: To convert this decimal to Base10, click the Dec option. The result is 255. That s our last example, but it s one to remember. If anyone ever asks you what your IQ is, say 8C. By their reaction, you may discover theirs. Or not. NOTES CHECK THE RESULTS Again, we can use the Windows Calculator to check our results. First, let s test the assertion that: = E 16 To do this: Step 1: With Calculator open in the Programmer view, type: 14 Step 2: To convert this decimal to Hexadecimal, click the Hex(adecimal) option. The result is E. Let s try this again. Earlier, we claimed that: = Step 1: Click the Dec(imal) option. Step 2: Type: 37 Step 3: To convert this decimal to Hexadecimal, click the Hex(adecimal) option.

10 PAGE 102 LAB 6: CALCULATOR WAYNE THOMAS SPIES

11 LAB 6: HTML REVISITED Now that we understand number systems, as well as how to work in them using Windows Calculator, we can return to a problem we had in HTML dealing with color. BACKGROUND COLOR To set the background color of a Web page, use change the property of the <body> tag: <body bgcolor="color "> where color is a so-called named color. For example: <body bgcolor="red"> NAMED COLORS In addition to hexadecimal codes, we can specify sixteen colors by name: black aqua lime silver fuchsia green gray purple olive yellow maroon navy teal red blue white While named colors work in all browsers, other color names might or might not in a given browser. Browser uniformity is essential, so, obviously, straying from these 16 named colors is problematic. COLOR Of course, limiting a Web page to sixteen colors is stifling, given that the human eye can perceive something like 10 million shades of color. Before we solve this problem, it will help to understand some ideas about color. SUBTRACTIVE PRIMARY COLORS In art class, you mixed colored dyes of the subtractive primary colors cyan, magenta, yellow to get black. Subtractive primaries are used with light-reflection, such as ink on paper, or paint on canvas. ADDITIVE PRIMARY COLORS Mix the additive primary colors red, green, blue to get white. The additive primaries are used with light-emitting devices, such as TVs, monitors, tablets, and smart phones. Cathode Ray Tubes (CRTs) in old TVs and monitors fired cathode rays through magnetic fields, which focused them, painting the back of the screen. The back of the screen was coated with phosphor dots that emitted light when the voltage was applied. Light-emitting diode (LED) screens don t use cathode rays, but, instead activate tiny red, green or blue LEDs. Again, more voltage applied to an individual LED means more of that color. Think of each picture element ( pixel ) as a combination of these three primary colors: red, green and blue. By mixing the intensities of these three colors, all colors could be produced. Now, the trick becomes how to tell a pixel how much red, green, or blue to produce. THE RGB METHOD The RGB method specifies intensity of the red, green, and blue cathode ray guns, or of the red, green, and blue LEDs, in six digits: RRGGBB where RR is any two digits representing the intensity of red, GG represents the intensity of green, and BB represents blue. The higher the number, the higher the intensity If are limited to only two digits for each color, the smallest value of any color would be 00, and the highest value would be 99. Each gun or LED, in this digital model, could shoot 100 intensities of light (i.e., 0-99, or 100 possibilities). This means that there are 100 x 100 x 100, or 1,000,000 possible color combinations. Unfortunately, remember that the human eye can see as many as 8 million colors. In the hexadecimal number system, the biggest number we can express in two digits is FF, which you will remember from our last lag, is 255 in Base-10.

12 PAGE 104 LAB 6: HTML REVISITED WAYNE THOMAS SPIES In the RGB method, each pair of characters represents a color. The first pair represents the red, the second pair represents the green, and the last pair represents the blue component. The bigger the number, the higher the voltage, and the more of that particular color. Using Base-16 thus allows us to render 256 intensities of light (i.e., from 00 to FF) for red, for blue, and for green. That would allow us 256 x 256 x 256) or 16,777,216 color combinations far beyond normal human capabilities in just six digits. HEXADECIMAL COLOR CODES Because the Named Color method is so constraining, HTML also uses the RGB method to specify colors. Each color code begins with an octothorpe ( # ) followed by three pairs of characters. BACKGROUND COLORS Earlier, we set the background color of a Web page by changing the bgcolor property of the <body> tag with a Named Color: <body bgcolor="blue"> Now, let s do this with the RGB method. The general form is: <body bgcolor="#rrggbb"> where #rrggbb is a hexadecimal color code or a color keyword. Therefore, to duplicate: <body bgcolor="blue"> we would use: <body bgcolor="#0000ff"> To get an all-black background, we would usee: <body bgcolor="#000000"> This is identical to: <body bgcolor="black"> BODY TAG & FONTS The bgcolor is a property of the <body> tag. There is only one <body> tag, and it belongs after the </head>. Novices often try to affect the color of individual pieces of text by inserting another <body> tag and altering its text property. Wrong! Do not use more than one <body>, or unpleasant effects may ensue. Instead, use the color property of the <font> tag: <html><head><title>my Page</title></head> <body bgcolor=#ffffff text="#0000ff"> <h1>hello!</h1> <font color="#00ff00">welcome</font> to <font color="#ff0000">colors</font>! </body></html> The results will be similar to Figure 150: Hello! Welcome to colors! Figure 148 NOTES TEXT COLOR To set the text color, use: <body text="#ffffff"> This produces a page with white text. This is identical to: <body text="white"> White text on a white background does not aid reading comprehension.

[301] Bits and Memory. Tyler Caraza-Harter

[301] Bits and Memory. Tyler Caraza-Harter [301] Bits and Memory Tyler Caraza-Harter Ones and Zeros 01111111110101011000110010011011000010010001100110101101 01000101110110000000110011101011101111000110101010010011 00011000100110001010111010110001010011101000100110100000

More information

Discussion. Why do we use Base 10?

Discussion. Why do we use Base 10? MEASURING DATA Data (the plural of datum) are anything in a form suitable for use with a computer. Whatever a computer receives as an input is data. Data are raw facts without any clear meaning. Computers

More information

ITP 140 Mobile App Technologies. Colors

ITP 140 Mobile App Technologies. Colors ITP 140 Mobile App Technologies Colors Colors in Photoshop RGB Mode CMYK Mode L*a*b Mode HSB Color Model 2 RGB Mode Based on the RGB color model Called an additive color model because adding all the colors

More information

Data Representation 1

Data Representation 1 1 Data Representation Outline Binary Numbers Adding Binary Numbers Negative Integers Other Operations with Binary Numbers Floating Point Numbers Character Representation Image Representation Sound Representation

More information

1.1 Review of Place Value

1.1 Review of Place Value 1 1.1 Review of Place Value Our decimal number system is based upon powers of ten. In a given whole number, each digit has a place value, and each place value consists of a power of ten. Example 1 Identify

More information

1.1 Data representation

1.1 Data representation 1.1.2 HEXADECIMAL NUMBER SYSTEM The one main disadvantage of binary numbers is that the binary string equivalent of a large decimal base-10 number can be quite long. When working with large digital systems,

More information

Computer Architecture and System Software Lecture 02: Overview of Computer Systems & Start of Chapter 2

Computer Architecture and System Software Lecture 02: Overview of Computer Systems & Start of Chapter 2 Computer Architecture and System Software Lecture 02: Overview of Computer Systems & Start of Chapter 2 Instructor: Rob Bergen Applied Computer Science University of Winnipeg Announcements Website is up

More information

Memory Addressing, Binary, and Hexadecimal Review

Memory Addressing, Binary, and Hexadecimal Review C++ By A EXAMPLE Memory Addressing, Binary, and Hexadecimal Review You do not have to understand the concepts in this appendix to become well-versed in C++. You can master C++, however, only if you spend

More information

Example 1: Denary = 1. Answer: Binary = (1 * 1) = 1. Example 2: Denary = 3. Answer: Binary = (1 * 1) + (2 * 1) = 3

Example 1: Denary = 1. Answer: Binary = (1 * 1) = 1. Example 2: Denary = 3. Answer: Binary = (1 * 1) + (2 * 1) = 3 1.1.1 Binary systems In mathematics and digital electronics, a binary number is a number expressed in the binary numeral system, or base-2 numeral system, which represents numeric values using two different

More information

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Dec 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 information

FA269 - DIGITAL MEDIA AND CULTURE

FA269 - DIGITAL MEDIA AND CULTURE FA269 - DIGITAL MEDIA AND CULTURE ST. LAWRENCE UNIVERSITY a. hauber http://blogs.stlawu.edu/digitalmedia DIGITAL TECHNICAL PRIMER INCLUDED HERE ARE THE FOLLOWING TOPICS A. WHAT IS A COMPUTER? B. THE DIFFERENCE

More information

CC411: Introduction To Microprocessors

CC411: 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 information

Number Systems MA1S1. Tristan McLoughlin. November 27, 2013

Number Systems MA1S1. Tristan McLoughlin. November 27, 2013 Number Systems MA1S1 Tristan McLoughlin November 27, 2013 http://en.wikipedia.org/wiki/binary numeral system http://accu.org/index.php/articles/1558 http://www.binaryconvert.com http://en.wikipedia.org/wiki/ascii

More information

Number Systems Using and Converting Between Decimal, Binary, Octal and Hexadecimal Number Systems

Number Systems Using and Converting Between Decimal, Binary, Octal and Hexadecimal Number Systems Number Systems Using and Converting Between Decimal, Binary, Octal and Hexadecimal Number Systems In everyday life, we humans most often count using decimal or base-10 numbers. In computer science, it

More information

Mathematics. Name: Class: Transforming Life chances

Mathematics. Name: Class: Transforming Life chances Mathematics Name: Class: Transforming Life chances Children first- Aspire- Challenge- Achieve Aspire: To be the best I can be in everything that I try to do. To use the adults and resources available both

More information

REPRESENTING INFORMATION:

REPRESENTING INFORMATION: REPRESENTING INFORMATION: BINARY, HEX, ASCII CORRESPONDING READING: WELL, NONE IN YOUR TEXT. SO LISTEN CAREFULLY IN LECTURE (BECAUSE IT WILL BE ON THE EXAM(S))! CMSC 150: Fall 2015 Controlling Information

More information

Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research): Digital codes This worksheet and all related files are licensed under the Creative Commons Attribution License, version 1.0. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/,

More information

Lecture 1: What is a computer?

Lecture 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 information

Excerpt from "Art of Problem Solving Volume 1: the Basics" 2014 AoPS Inc.

Excerpt from Art of Problem Solving Volume 1: the Basics 2014 AoPS Inc. Chapter 5 Using the Integers In spite of their being a rather restricted class of numbers, the integers have a lot of interesting properties and uses. Math which involves the properties of integers is

More information

1.1 Information representation

1.1 Information representation Fundamentals of Data Representation: Before we jump into the world of number systems, we'll need a point of reference; I recommend that you copy the following table that you can refer to throughout this

More information

Variables and Data Representation

Variables and Data Representation You will recall that a computer program is a set of instructions that tell a computer how to transform a given set of input into a specific output. Any program, procedural, event driven or object oriented

More information

Objectives. Connecting with Computer Science 2

Objectives. 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 information

The type of all data used in a C++ program must be specified

The type of all data used in a C++ program must be specified The type of all data used in a C++ program must be specified A data type is a description of the data being represented That is, a set of possible values and a set of operations on those values There are

More information

Bits 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: 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 information

4 + 4 = = 1 5 x 2 = 10

4 + 4 = = 1 5 x 2 = 10 Beginning Multiplication Ask your child... "Have you ever seen a multiplication problem?" Explain: "Instead of a plus ( + ) sign or a minus ( - ) sign a multiplication sign ( x ) is used." Have child to

More information

Bits, Words, and Integers

Bits, Words, and Integers Computer Science 52 Bits, Words, and Integers Spring Semester, 2017 In this document, we look at how bits are organized into meaningful data. In particular, we will see the details of how integers are

More information

Binary Representation. Jerry Cain CS 106AJ October 29, 2018 slides courtesy of Eric Roberts

Binary Representation. Jerry Cain CS 106AJ October 29, 2018 slides courtesy of Eric Roberts Binary Representation Jerry Cain CS 106AJ October 29, 2018 slides courtesy of Eric Roberts Once upon a time... Claude Shannon Claude Shannon was one of the pioneers who shaped computer science in its early

More information

17. [Exploring Numbers]

17. [Exploring Numbers] . [Exploring Numbers] Skill. Comparing whole numbers. Compare the size of the digits in the same place, one at a time. Work from left to right across each number. Q. Which number is the A ) 06 B ) 60 C

More information

Topic Notes: Bits and Bytes and Numbers

Topic Notes: Bits and Bytes and Numbers Computer Science 220 Assembly Language & Comp Architecture Siena College Fall 2010 Topic Notes: Bits and Bytes and Numbers Binary Basics At least some of this will be review, but we will go over it for

More information

Binary Systems and Codes

Binary Systems and Codes 1010101010101010101010101010101010101010101010101010101010101010101010101010101010 1010101010101010101010101010101010101010101010101010101010101010101010101010101010 1010101010101010101010101010101010101010101010101010101010101010101010101010101010

More information

IT 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 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 information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Bits and Bytes and Numbers

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Bits and Bytes and Numbers Computer Science 324 Computer Architecture Mount Holyoke College Fall 2007 Topic Notes: Bits and Bytes and Numbers Number Systems Much of this is review, given the 221 prerequisite Question: how high can

More information

Teaching KS3 Computing. Session 3 Theory: More on binary and representing text Practical: Introducing IF

Teaching KS3 Computing. Session 3 Theory: More on binary and representing text Practical: Introducing IF Teaching KS3 Computing Session 3 Theory: More on binary and representing text Practical: Introducing IF Today s session 5:00 6:00 Representing text as numbers characters and the computer 6.00 7.00 Programming

More information

Making Backgrounds With Paint Shop Pro

Making Backgrounds With Paint Shop Pro Making Backgrounds With Paint Shop Pro A good Web site deserves a good background. Whether you decide on a single color, a faded repeated logo, a textured tile, or a border, the background of your Web

More information

Topic Notes: Bits and Bytes and Numbers

Topic Notes: Bits and Bytes and Numbers Computer Science 220 Assembly Language & Comp Architecture Siena College Fall 2011 Topic Notes: Bits and Bytes and Numbers Binary Basics At least some of this will be review for most of you, but we start

More information

Using sticks to count was a great idea for its time. And using symbols instead of real sticks was much better.

Using sticks to count was a great idea for its time. And using symbols instead of real sticks was much better. 2- Numbering Systems Tutorial 2-1 What is it? There are many ways to represent the same numeric value. Long ago, humans used sticks to count, and later learned how to draw pictures of sticks in the ground

More information

Data Representation From 0s and 1s to images CPSC 101

Data Representation From 0s and 1s to images CPSC 101 Data Representation From 0s and 1s to images CPSC 101 Learning Goals After the Data Representation: Images unit, you will be able to: Recognize and translate between binary and decimal numbers Define bit,

More information

Final Labs and Tutors

Final 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 information

Computer Number Systems Supplement

Computer Number Systems Supplement Computer Number Systems Supplement Dr. Ken Hoganson, All Rights Reserved. SUPPLEMENT CONTENTS S.1 Decimal System: Powers-of-the-Base 2 S.2 Converting to Binary: Division/Remainder Algorithm. 3 S.3 Binary

More information

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Table of Contents Introduction!... 1 Part 1: Entering Data!... 2 1.a: Typing!... 2 1.b: Editing

More information

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model) INTRO TO CSS RECAP HTML WHAT IS CSS ADDING CSS TO YOUR HTML DOCUMENT CSS IN THE DIRECTORY TREE CSS RULES A FEW CSS VALUES (colour, size and the box model) CSS SELECTORS SPECIFICITY WEEK 1 HTML In Week

More information

Chapter 7. Representing Information Digitally

Chapter 7. Representing Information Digitally Chapter 7 Representing Information Digitally Learning Objectives Explain the link between patterns, symbols, and information Determine possible PandA encodings using a physical phenomenon Encode and decode

More information

GENERAL MATH FOR PASSING

GENERAL MATH FOR PASSING GENERAL MATH FOR PASSING Your math and problem solving skills will be a key element in achieving a passing score on your exam. It will be necessary to brush up on your math and problem solving skills.

More information

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software All the parts--monitor, printer, hard drive, etc.-- cables, cabinets, and programs that make a computer

More information

Audio Text for the Lesson: Counting Systems

Audio Text for the Lesson: Counting Systems Audio Text for the Lesson: Counting Systems Part 1: Introduction (2 minutes) Peace, mercy and blessings of Allah Welcome everyone in this lesson Allow me to introduce myself, my name is Abdullah Saleh

More information

Module 1: Information Representation I -- Number Systems

Module 1: Information Representation I -- Number Systems Unit 1: Computer Systems, pages 1 of 7 - Department of Computer and Mathematical Sciences CS 1305 Intro to Computer Technology 1 Module 1: Information Representation I -- Number Systems Objectives: Learn

More information

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems SCHOOL OF ENGINEERING & BUILT ENVIRONMENT Mathematics Numbers & Number Systems Introduction Numbers and Their Properties Multiples and Factors The Division Algorithm Prime and Composite Numbers Prime Factors

More information

Section 1.1 Definitions and Properties

Section 1.1 Definitions and Properties Section 1.1 Definitions and Properties Objectives In this section, you will learn to: To successfully complete this section, you need to understand: Abbreviate repeated addition using Exponents and Square

More information

umber Systems bit nibble byte word binary decimal

umber Systems bit nibble byte word binary decimal umber Systems Inside today s computers, data is represented as 1 s and 0 s. These 1 s and 0 s might be stored magnetically on a disk, or as a state in a transistor. To perform useful operations on these

More information

Mastering Binary Math

Mastering Binary Math Cisco certification candidates, from the CCNA to the CCIE, must master binary math. This includes basic conversions, such as binary-to-decimal and decimal-to-binary, as well as more advanced scenarios

More information

DIGITAL SYSTEM FUNDAMENTALS (ECE 421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE 422) COURSE / CODE NUMBER SYSTEM

DIGITAL SYSTEM FUNDAMENTALS (ECE 421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE 422) COURSE / CODE NUMBER SYSTEM COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE 421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE 422) NUMBER SYSTEM A considerable subset of digital systems deals with arithmetic operations. To understand the

More information

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs.

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. Lesson 2 VARIABLES Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. WHAT ARE VARIABLES? When you input data (i.e. information) into a computer

More information

Converting between Percents, Decimals, and Fractions

Converting between Percents, Decimals, and Fractions Section. PRE-ACTIVITY PREPARATION Converting between Percents, Decimals, and Fractions Think about how often you have heard, read, or used the term percent (%) in its many everyday applications: The sales

More information

COPYRIGHTED MATERIAL. An Introduction to Computers That Will Actually Help You in Life. Chapter 1. Memory: Not Exactly 0s and 1s. Memory Organization

COPYRIGHTED MATERIAL. An Introduction to Computers That Will Actually Help You in Life. Chapter 1. Memory: Not Exactly 0s and 1s. Memory Organization Chapter 1 An Introduction to Computers That Will Actually Help You in Life Memory: Not Exactly 0s and 1s Memory Organization A Very Simple Computer COPYRIGHTED MATERIAL 2 Chapter 1 An Introduction to Computers

More information

Reading 2.2 Cascading Style Sheets

Reading 2.2 Cascading Style Sheets Reading 2.2 Cascading Style Sheets By Multiple authors, see citation after each section What is Cascading Style Sheets (CSS)? Cascading Style Sheets (CSS) is a style sheet language used for describing

More information

Number System (Different Ways To Say How Many) Fall 2016

Number System (Different Ways To Say How Many) Fall 2016 Number System (Different Ways To Say How Many) Fall 2016 Introduction to Information and Communication Technologies CSD 102 Email: mehwish.fatima@ciitlahore.edu.pk Website: https://sites.google.com/a/ciitlahore.edu.pk/ict/

More information

SPEED UP YOUR CODING PROCESS HTML INSIGHTS YOU DIDN T KNOW ABOUT. 1

SPEED UP YOUR CODING PROCESS HTML INSIGHTS YOU DIDN T KNOW ABOUT. 1 SPEED UP YOUR CODING PROCESS HTML INSIGHTS YOU DIDN T KNOW ABOUT 1 INTRODUCTION How to create a website? Why are some websites neat and attractive while others are not? Where should I start if I want to

More information

Variables and Literals

Variables and Literals C++ By 4 EXAMPLE Variables and Literals Garbage in, garbage out! To understand data processing with C++, you must understand how C++ creates, stores, and manipulates data. This chapter teaches you how

More information

Unit 2 Digital Information. Chapter 1 Study Guide

Unit 2 Digital Information. Chapter 1 Study Guide Unit 2 Digital Information Chapter 1 Study Guide 2.5 Wrap Up Other file formats Other file formats you may have encountered or heard of include:.doc,.docx,.pdf,.mp4,.mov The file extension you often see

More information

Excerpt from: Stephen H. Unger, The Essence of Logic Circuits, Second Ed., Wiley, 1997

Excerpt from: Stephen H. Unger, The Essence of Logic Circuits, Second Ed., Wiley, 1997 Excerpt from: Stephen H. Unger, The Essence of Logic Circuits, Second Ed., Wiley, 1997 APPENDIX A.1 Number systems and codes Since ten-fingered humans are addicted to the decimal system, and since computers

More information

Binary. Hexadecimal BINARY CODED DECIMAL

Binary. Hexadecimal BINARY CODED DECIMAL Logical operators Common arithmetic operators, like plus, minus, multiply and divide, works in any number base but the binary number system provides some further operators, called logical operators. Meaning

More information

1. NUMBER SYSTEMS USED IN COMPUTING: THE BINARY NUMBER SYSTEM

1. NUMBER SYSTEMS USED IN COMPUTING: THE BINARY NUMBER SYSTEM 1. NUMBER SYSTEMS USED IN COMPUTING: THE BINARY NUMBER SYSTEM 1.1 Introduction Given that digital logic and memory devices are based on two electrical states (on and off), it is natural to use a number

More information

Summer 2013 Modules 9-13

Summer 2013 Modules 9-13 Summer 201 Modules 9-1 Mastering the Fundamentals Chris Millett Copyright 201 All rights reserved. Written permission must be secured from the author to use or reproduce any part of this book. Academic

More information

Lecture 1: Digital Systems and Number Systems

Lecture 1: Digital Systems and Number Systems Lecture 1: Digital Systems and Number Systems Matthew Shuman September 26th, 2012 The Digital Abstraction 1.3 in Text Analog Systems Analog systems are continuous. Look at the analog clock in figure 1.

More information

Review of HTML. Ch. 1

Review of HTML. Ch. 1 Review of HTML Ch. 1 Review of tags covered various

More information

Intermediate Programming & Design (C++) Notation

Intermediate 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 information

Computer Basics. Page 1 of 10. We optimize South Carolina's investment in library and information services.

Computer Basics. Page 1 of 10. We optimize South Carolina's investment in library and information services. Computer Basics Page 1 of 10 We optimize South Carolina's investment in library and information services. Rev. Oct 2010 PCs & their parts What is a PC? PC stands for personal computer. A PC is meant to

More information

Lecture C1 Data Representation. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

Lecture C1 Data Representation. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007 Lecture C1 Data Representation Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007 Functionalia Instructor Chipp Jansen, chipp@sci.brooklyn.cuny.edu Course Web Page http://www.sci.brooklyn.cuny.edu/~chipp/cc3.12/

More information

Chapter 2. Data Representation in Computer Systems

Chapter 2. Data Representation in Computer Systems Chapter 2 Data Representation in Computer Systems Chapter 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers. Master the skill of converting

More information

Number Systems II MA1S1. Tristan McLoughlin. November 30, 2013

Number Systems II MA1S1. Tristan McLoughlin. November 30, 2013 Number Systems II MA1S1 Tristan McLoughlin November 30, 2013 http://en.wikipedia.org/wiki/binary numeral system http://accu.org/index.php/articles/18 http://www.binaryconvert.com http://en.wikipedia.org/wiki/ascii

More information

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

<body bgcolor=  fgcolor=  link=  vlink=  alink= > These body attributes have now been deprecated, and should not be used in XHTML. CSS Formatting Background When HTML became popular among users who were not scientists, the limited formatting offered by the built-in tags was not enough for users who wanted a more artistic layout. Netscape,

More information

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CSS. Lecture 16 COMPSCI 111/111G SS 2018 CSS Lecture 16 COMPSCI 111/111G SS 2018 No CSS Styles A style changes the way the HTML code is displayed Same page displayed using different styles http://csszengarden.com Same page with a style sheet

More information

But I know what most of you will do: use a calculator to convert; that's fine, IF you understand the theory.

But I know what most of you will do: use a calculator to convert; that's fine, IF you understand the theory. Numbers After you have read this, the next section will show how to use a This and other videos related to numbers and colors are available on the class web site. Why are there different numbering systems?

More information

Notes from April 3 Tuesday

Notes from April 3 Tuesday Notes from April 3 Tuesday With many weeks of ce108 covering higher level computing using matlab, it is time to go lower level so we could understand more of the computer terms used frequently in the computer

More information

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers Real Numbers We have been studying integer arithmetic up to this point. We have discovered that a standard computer can represent a finite subset of the infinite set of integers. The range is determined

More information

Digital Fundamentals

Digital 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 information

cast int( x float( x str( x hex( int string int oct( int string int bin( int string int chr( int int ord( ch

cast int( x float( x str( x hex( int string int oct( int string int bin( int string int chr( int int ord( ch More About Values Casts To cast is to take a value of one type and return the corresponding value of some other type (or an error, if the cast is impossible) int(x) casts a string, float, or boolean x

More information

Chapter 1 Operations With Numbers

Chapter 1 Operations With Numbers Chapter 1 Operations With Numbers Part I Negative Numbers You may already know what negative numbers are, but even if you don t, then you have probably seen them several times over the past few days. If

More information

Worksheet - Storing Data

Worksheet - Storing Data Unit 1 Lesson 12 Name(s) Period Date Worksheet - Storing Data At the smallest scale in the computer, information is stored as bits and bytes. In this section, we'll look at how that works. Bit Bit, like

More information

CSS Lecture 16 COMPSCI 111/111G SS 2018

CSS Lecture 16 COMPSCI 111/111G SS 2018 No CSS CSS Lecture 16 COMPSCI 111/111G SS 2018 Styles Astyle changes the way the HTML code is displayed Same page displayed using different styles Same page with a style sheet body font-family: sans-serif;

More information

The type of all data used in a C (or C++) program must be specified

The type of all data used in a C (or C++) program must be specified The type of all data used in a C (or C++) program must be specified A data type is a description of the data being represented That is, a set of possible values and a set of operations on those values

More information

Chapter 3 Analyzing Normal Quantitative Data

Chapter 3 Analyzing Normal Quantitative Data Chapter 3 Analyzing Normal Quantitative Data Introduction: In chapters 1 and 2, we focused on analyzing categorical data and exploring relationships between categorical data sets. We will now be doing

More information

Part II: Creating Visio Drawings

Part II: Creating Visio Drawings 128 Part II: Creating Visio Drawings Figure 5-3: Use any of five alignment styles where appropriate. Figure 5-4: Vertical alignment places your text at the top, bottom, or middle of a text block. You could

More information

Lab Using the Windows Calculator with Network Addresses

Lab Using the Windows Calculator with Network Addresses Objectives Part 1: Access the Windows Calculator Part 2: Convert between Numbering Systems Part 3: Convert Host IPv4 Addresses and Subnet Masks into Binary Part 4: Determine the Number of Hosts in a Network

More information

Section 1.2 Fractions

Section 1.2 Fractions Objectives Section 1.2 Fractions Factor and prime factor natural numbers Recognize special fraction forms Multiply and divide fractions Build equivalent fractions Simplify fractions Add and subtract fractions

More information

Math in Focus Vocabulary. Kindergarten

Math in Focus Vocabulary. Kindergarten Math in Focus Vocabulary Kindergarten Chapter Word Definition 1 one 1 * 1 two 2 * * 1 three 3 * * * 1 four 4 * * * * 1 five 5 * * * * * 1 same things that have a common property 1 different things that

More information

St. Benedict s High School. Computing Science. Software Design & Development. (Part 2 Computer Architecture) National 5

St. Benedict s High School. Computing Science. Software Design & Development. (Part 2 Computer Architecture) National 5 Computing Science Software Design & Development (Part 2 Computer Architecture) National 5 DATA REPRESENTATION Numbers Binary/Decimal Conversion Example To convert 69 into binary: write down the binary

More information

Binary Codes. Dr. Mudathir A. Fagiri

Binary Codes. Dr. Mudathir A. Fagiri Binary Codes Dr. Mudathir A. Fagiri Binary System The following are some of the technical terms used in binary system: Bit: It is the smallest unit of information used in a computer system. It can either

More information

COMP 102: Computers and Computing

COMP 102: Computers and Computing COMP 102: Computers and Computing Lecture 2: Bits&bytes, Switches, and Boolean Logic Instructor: Kaleem Siddiqi (siddiqi@cim.mcgill.ca) Class web page: www.cim.mcgill.ca/~siddiqi/102.html The Lowly Bit

More information

Slide Set 1. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Slide Set 1. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary Slide Set 1 for ENEL 353 Fall 2017 Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary Fall Term, 2017 SN s ENEL 353 Fall 2017 Slide Set 1 slide

More information

Number Systems. Dr. Tarek A. Tutunji Philadelphia University, Jordan

Number 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 information

CMSC 1513 Lecture 1.2

CMSC 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 information

Fractions and their Equivalent Forms

Fractions and their Equivalent Forms Fractions Fractions and their Equivalent Forms Little kids use the concept of a fraction long before we ever formalize their knowledge in school. Watching little kids share a candy bar or a bottle of soda

More information

Analogue vs. Discrete data

Analogue vs. Discrete data CL 1 Analogue vs. Discrete data analogue data Analogue vs. Discrete data Data is the raw information that is input into the computer. In other words, data is information that is not yet processed by the

More information

Applets and the Graphics class

Applets and the Graphics class Applets and the Graphics class CSC 2014 Java Bootcamp Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Some slides in this presentation are adapted from the slides accompanying

More information

Appendix D CSS Properties and Values

Appendix D CSS Properties and Values HTML Appendix D CSS Properties and Values This appendix provides a brief review of Cascading Style Sheets (CSS) concepts and terminology, and lists CSS level 1 and 2 properties and values supported by

More information

UNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES

UNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES UNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES Structure 2.0 Introduction 2.1 Unit Objectives 2.2 Number Systems 2.3 Bits and Bytes 2.4 Binary Number System 2.5 Decimal Number System 2.6 Octal Number System

More information

The Gray Code. Script

The Gray Code. Script Course: B.Sc. Applied Physical Science (Computer Science) Year & Sem.: IInd Year, Sem - IIIrd Subject: Computer Science Paper No.: IX Paper Title: Computer System Architecture Lecture No.: 9 Lecture Title:

More information

User. Application program. Interfaces. Operating system. Hardware

User. Application program. Interfaces. Operating system. Hardware Operating Systems Introduction to Operating Systems and Computer Hardware Introduction and Overview The operating system is a set of system software routines that interface between an application program

More information

Year Two Inspire Objective Target Sheet UNIT ONE: NUMBERS TO Recognise representations of, read and write, numbers to

Year Two Inspire Objective Target Sheet UNIT ONE: NUMBERS TO Recognise representations of, read and write, numbers to Year Two Inspire Objective Target Sheet UNIT ONE: NUMBERS TO 1000 1. Recognise representations of, read and write, numbers to 1000 2. Use strategies of counting in ones, tens and hundreds to count to 1000

More information