Professional Documents
Culture Documents
My Name Is 1101: What Am I?
My Name Is 1101: What Am I?
WHAT AM I?
❑ A NUMBER. . ?
❑ A CHARACTER ?
❑ A COLOR . . ?
❑ A SOUND . . ?
By Ron English
by Ron English
Publisher: Internethics
The author and publisher of this book have made every effort in the
preparation of this and related materials to ensure its quality, including
development research, and testing the effectiveness of its theories and
programs in learning environments. The author and publisher will not be
liable in any event for incidental or consequential damages in connection
with, or arising out of the furnishing, performance or use of these programs.
All rights reserved. No part of this book may be reproduced in any form or
by any means without permission in writing from the Publisher.
ISBN: 9798878013604
©2024
Internethics
217 Leonia St,
Cornwall, Ontario, K6H5M1
◼ Kyle Anderson
◼ Tony D’Alfonso
◼ John Garner
◼ Henry Kaluzenski
◼ Hayden Raulin
◼ Dan Reid
◼ Katherine Wilson
TOPICS 1
Section I SECTION II
◼ NUMBERS ◼ TEXT
◼ Base 10 ◼ ASCII
◼ Base 2
◼ LETTERS
◼ Base 16
◼ FONTS
◼ Conversion
◼ Serif
◼ Integers
◼ Sans Serif
◼ Negative numbers ◼ Proportional
◼ Fractions ◼ Mono-Spaced
◼ Arithemetic ◼ SPECIAL FONTS
◼ English 1
◼ Roman Numerals I
◼ Chinese
◼ English 5
◼ Roman Numerals V
◼ Chinese
◼ English 9
◼ Roman Numerals IX
◼ Chinese
◼ English 10
◼ Roman Numerals X
◼ Chinese
No single THINGS
10 groups of 10 THINGS
No single groups of 10 THINGS
No single THINGS
OTHER BASES
YES
◼ Base 60 seconds
◼ 60 seconds = 1 minute, 60 minutes = 1 hour
◼ 1 minute 35 seconds
◼ 2 hours and 15 minutes
◼ Base 16 ounces
◼16 ounces = one pound
◼8 pounds, 8 ounces
◼ Liquid, Mass,
◼ Temperature
◼ Degrees Celsius (0 to 100) vrs
◼ Degrees Fahrenheit (32 to 212)
◼ A switch in the ON
position is a ONE
off or on
0 or 1
three bits
0 1 0 0 1 0 1 0
BUT …
◼ To write many 1’s and 0’s is hard for people
to read
◼ We put the switches in groups of 4,
(HEXADECIMAL) to make it easier for people
to read
2
10
3
11
4
12
5
13
6
14
7
(c) Ron English, 2024 15
Suppose we used
Base 16
◼ When would we “carry”?
◼ In base ten, we carry after nine
◼ In base 16,
we would ‘carry” after 15!
◼ hexadecimal: 7a8
◼ 01112 = 716
◼ 10102 = A16
◼ 10002 = 816
CONVERT FROM
HEXADECIMAL TO DECIMAL
DECIMAL TO HEXADECIMAL
1c = 28
DEED = 57069
A little trickier …
but here it is
Quotient
Divisor Dividend
- Divisor x Quotient
Remainder
(c) Ron English, 2024
How to convert Decimal to Hex
◼ Divisor is 16 (hex is base 16)
◼ Dividend is the DECIMAL number to be
converted
◼ Remainder is THE CURRENT DIGIT
◼ Quotient is the dividend for the next largest
digit.
DECIMAL to BINARY
DECIMAL to HEX(Base 16)
1
16 18
- 16
2
(c) Ron English, 2024
Example 1
Convert 18 to Hex
◼ A second division takes place
◼ New Dividend is 1 (The quotient from step 1)
16
1 16 18
- 16
2
(c) Ron English, 2024
Example 1
Convert 18 to Hex
◼ Divisor is 16
◼ New Dividend is 1 (The quotient from step 1)
◼ Quotient is 0
◼ Remainder is 1
◼ Therefore the next digit is 1
16 1 16 18
- 16 - 16
1 2
(c) Ron English, 2024
Example 1
Convert 18 to Hex
◼ The hexadecimal Number is 1216
◼ Check
1216 = 1 x 161+ 2x160
= 16 + 2
= 18
2
16 437
- 32 (2 x 16)
117
27
16 437
- 320
117
- 112 (7 x 16)
27
16 437
- 320
117
- 112 (7 x 16)
27
16 27 16 437
- 320
117
- 112
5
(c) Ron English, 2013
Example 2: Convert 437 to Hex
1 27
16 16 437
27
- 16 (1 x 16) - 320
117
- 112
5
(c) Ron English, 2013
Example 1: Convert 437 to Hex
1 27
16 16 437
27
- 16 - 320
117
11 - 112
5
(c) Ron English, 2013
Example 2
Convert 437 to HEX
◼ The remainder is 11 …
◼ but an 11 in hexadecimal is a
1 27
16 16 437
27
- 16 - 320
117
11
- 112
1 27
16 27 16 437
1 - 16 - 320
11 117
- 112
B 5
(c) Ron English, 2013
Example 2: Convert 437 to Hex
0 1 27
16 27 16 437
1 - 16 - 320
- 16 (1 x 16)
11 117
- 112
B 5
(c) Ron English, 2013
Example 2: Convert 437 to Hex
0 1 27
437
27
16 16
1 - 16 - 320
117
- 16 (1 x 16) 11
- 112
1 B 5
(c) Ron English, 2013
Example 2
Convert 437 to HEX
◼ Therefore, the next digit is a 1
SINCE I am old,
I seldom use the newer terms
(c) Ron English, 2024
(c) Ron English, 2024
The WORDomputer Word
A computer word is defined as the number of
bits that constitute a common unit of data.
Also is the BUS size (a HARDWARE topic)
0 1 29
15 29 15 437
1 - 15 - 300
14 137
- 135
1 E
(c) Ron English, 2024
2
Example 1: Convert 437 to base 9
0 5 48
9 48 9 437
1 - 45 - 360
3 77
- 72
5 3
(c) Ron English, 2024
5
Example 1: Convert 437 to base 35
(0 to 9, A to Y)
0 12
35 12 35 437
- 45 - 350
12 87
- 70
12 17
C
(c) Ron English, 2024 H
437 THINGS … can be written as
43710
=5359
=1E215
=1B516
= CH35
(c) Ron English, 2024
◼ IF converting from a base other than base 10
◼ 1) convert to base ten
◼ 2) convert that number to new base
◼ 5 and -5
◼ 5: 00000101
◼ -5 10000101
◼ 5 and -5
◼ 5: 00000101
◼ -5 11111010
5 and -5
5: 00000101
-5: 11111010
Add 1 11111011 (-5 in two’s complement
See:
https://en.wikipedia.org/wiki/IEEE_754-1985
◼ Floating-point numbers in IEEE 754 format
consist of three fields:
◼ a sign bit,
◼ a biased exponent,
◼ a fraction.
◼ The following examples illustrate the meaning
of each.
◼ Analogous to scientific notation, where
numbers are written to have a single non-
zero digit to the left of the decimal point, we
rewrite this number so it has a single 1 bit to
the left of the "binary point".
◼ We simply multiply by the appropriate power
of 2 to compensate for shifting the bits left by
three positions:
SIMPLE ANSWER
◼ There are more complex solutions not
covered here
OR .1101
Powers of 2 as fractions
Powers of 2
Which is
◼ 26 25 24 … 20 … 2-4 2-5
◼ Here are some examples:
2 = 21 = 10
4 = 22 = 100
8 = 23 = 1000
READ
LEFT TO
RIGHT
◼ So … 1/32 is 2-5 = .000012
Fraction
OMNI Calculator: 5/32
https://www.omnicalculator.com/math/binary-fraction#the-conversion-from-binary-fraction-to-decimal-fraction
Fractions with a denominator that
is NOT a power of 2
◼ The denominator is NOT a power of 2
◼ 3,5,6,7 … etc.
1. Multiply by 2
2. If Greater than 1,
1. next digit is 1,
2. subtract 1
3. ELSE
1. Next digit is zero
4. REPEAT
See examples next pages
EXAMPLE 1: 1/3
1. 1/3 * 2 = 2/3
1. Binary = .0,
2. 2/3 * 2 = 4/3 -1 = 1/3
1. Binary = .01
3. 1/3 * 2 = 2/3
1. Binary = .010
4. 2/3 * 2 = 4/3 -1 = 1/3
1. Binary = .0101
5. REPEAT
EXAMPLE 1: 1/3
SHIFT LEFT 2
EXAMPLE 2: 1/5
1. 1/5 * 2 = 2/5
1. Binary = .0,
2. 2/5 * 2 = 4/5
1. Binary = .00
3. 4/5 * 2 = 8/5 – 1 = 3/5
1. Binary = .001
4. 3/5 * 2 = 6/5 -1 = 1/5
1. Binary = .0011
5. 1/5 * 2 = 2/5
1. Binary = .00110
6. REPEAT
EXAMPLE 2: 1/5
SHIFT LEFT 3
Next Step
◼ “move” the first 1 to the left of the decimal
◼ .01010101 (1/3) = 1.010101 x22
◼ .001100110011 (1/5) = 1.10011001 x23
◼ Add 1 to 32767
10 11
+ 1 + 1
11 100
4 C D 3
Since the first number is base
16, all other numbers are
18AF + 3424 = 4CD3 assumed to be base 16
SUBTRACTION
◼ Subtraction in Binary is similar to subtraction
in Decimal.
◼ We subtract on digit at a time moving right to
left
◼ If the answer is a negative number .. We
“borrow” from the column to the left
Subtraction in decimal
◼ 3 15 “borrow”
5 4 5 4 5
-2 -1 2 -1 7
3 3 3 2 8
Subtraction by Computers
Can not subtract
They add by adding the negative
5 4 5 4 5
-2 -1 2 -1 7
5 4 5 4 5
+(-2) +(-1 2) +(-1 7)
3 3 3 2 8
Binary Subtraction
Find the 2’s complement and add
Since computers now use 2’s complement
instead of a sign bit or 1’s complement, I will
leave those two examples to the eager readers
Subtraction
For example 3-3 would be 3 +(-3) = 0
In binary, 3 is 0011
In 2’s complement, flip the 1’s and 0’s, then add
1
◼ 0011 => 1100 => 1101
Now add
0 0 1 1
+ 1 1 0 0
1 0 0 0 0
(only using four bits we get zero)
0 + 0 = 0
1 + 0 = 1
0 + 1 = 1
1 + 1 = 1, “carry” 1
8 Bit
121 – 47 = 74
121 = 0 1 1 1 1 0 0 12
47 = 0 0 1 0 1 1 1 12
2’s C 11010000 + 1 = 11010001
128 64 32 16 8 4 2 1
0 1 1 1 1 0 0 1
+1 1 0 1 0 0 0 1
0 1 0 0 1 0 1 0 = 74 (correct!)
MULTIPLICATION
Terminology
Multiplicand
X Multiplier
= Product
Decimal example: 49 x 13
49
x 13
147 (3 x 49)
49x (shift to left “x” then 2 x 4
637 (add)
BINARY Example : 49 x 13
49 = 0011 0001
13 = .... 1101
11 0001
000 000x
1100 01xx
1 1000 1xxx
10 0111 1101 = 637
Multiplication Algorithm
Convert Multiplicand and Multiplier to binary
1. Set PRODUCT to zero
2. For right most bit in Multiplier
1. If ZERO, do nothing
2. If ONE, add MULTIPLICAND to PRODUCT
3. SHIFT Multiplier to RIGHT SHIFT is
explained on
4. SHIFT Multiplicand to LEFT next page
MULTIPLICAND 49 = 0 0 1 1 0 0 0 1
MULTIPLIER 13 = 0 0 0 0 1 1 0 1
PRODUCT 0 = 0 0 0 0 0 0 0 0
Example: 49 x 13 page 2 of 6
The multiplier’s left-most bit is 1
ADD multiplicand to PRODUCT
SHIFT multiplicand LEFT, SHIFT multiplier RIGHT
PRODUCT = 0 0 1 1 0 0 0 1
MULTIPLICAND = 0 0 1 1 0 0 0 1
MULTIPLIER = 0 0 0 0 1 1 0 1
<= = 0 0 1 1 0 0 0 1 0
New
=> = 0 0 0 0 0 1 1 0 1 MULTIPLICAND
and
◼ MULTIPLIER
Example: 49 x 13 page 3 of 6
The multiplier’s left-most bit is 0
ADD multiplicand to PRODUCT
SHIFT multiplicand LEFT, SHIFT multiplier RIGHT
PRODUCT = 0 0 0 1 1 0 0 0 1
MULTIPLICAND = 0 0 1 1 0 0 0 1 0
MULTIPLIER = 0 0 0 0 0 1 1 0
<= = 0 0 1 1 0 0 0 1 0 0
New
=> = 0 0 0 0 0 0 1 1 0 MULTIPLICAND
and
◼ MULTIPLIER
Example: 49 x 13 page 4 of 6
The multiplier’s left-most bit is 1
ADD multiplicand to PRODUCT
SHIFT multiplicand LEFT, SHIFT multiplier RIGHT
PRODUCT = 0 0 0 1 1 1 1 0 1 0 1
MULTIPLICAND = 0 0 1 1 0 0 0 1 0 0 0
MULTIPLIER = 0 0 0 0 0 0 1 1
<= = 0 0 1 1 0 0 0 1 0 0 0
New
=> = 0 0 0 0 0 0 0 1 1 MULTIPLICAND
and
◼ MULTIPLIER
Example: 49 x 13 page 5 of 6
The multiplier’s left-most bit is 1
ADD multiplicand to PRODUCT
SHIFT multiplicand LEFT, SHIFT multiplier RIGHT
PRODUCT = 0 1 0 0 1 1 1 1 1 0 1
MULTIPLICAND = 0 0 1 1 0 0 0 1 0 0 0
MULTIPLIER = 0 0 0 0 0 0 0 1
<= = 0 0 1 1 0 0 0 1 0 0 0 0
New
=> = 0 0 0 0 0 0 0 0 1 MULTIPLICAND
and
◼ MULTIPLIER
Example: 49 x 13 page 6 of 6
The multiplier’s is 0
PRODUCT is the answer
512 + 64 + 32 + 16 + 8 + 4 + 1 = 637
49 x 13 = 637
DIVISION
The algorithm is quite complicated
Similar to multiplication,
we use shifts, addition and subtraction
differenc
Reps DIVISOR QUOTIENT REMAINDER divisor dividend e
1 01000000 0 1011 64 11 -53
2 00100000 00 1011 32 11 -21
11/4
QUOTIENT = 000102 = 2
REMAINDER = 112 = 3
11/4 = 2 R 3
8-BIT EXAMPLE USING EXCEL
233 / 7
16 - bit 8 - bit 8 bit
START OF REP
DIVISOR QUOTIENT REMAINDER
QUOTIENT REMAINDER
33 2
Numbers Summary
◼ Numbers are stored by switches which are
either on or off – a bit
◼ Sets of 4 Switches make a half-byte – which
is base 16 or HEXADECIMAL
◼ There are 8 bits in a byte
◼ Arithmetic is all done by addition.
SECTION II
TEXT
BITMAP (BMP)
0 1 0 0 1 0 1 0 = J
ASCII-8 code Keyboard character
SERIF
RON ENGLISH TIMES NEW ROMAN
ROCKWELL
RON ENGLISH
◼ #21 = 33 RED
◼ #25 = 37 GREEN
◼ #29 = 41 BLUE
◼ 207 = #CF
◼ 78 = #4E
◼ 207 = #CF
◼ Therefore #CF4ECF
Raptors 206 17 65
And so on …..
(c) Ron English, 2024
HARMONIC
FACTOR
FIRST Harmonic
(Fundamental Note) 1 Times
The second harmonic is 2 times
The third Harmonic is 4 times
The fifth Harmonic is 8 times
The sixth Harmonic is 16 times
And so on …..
DIFFERENT TIMBRES
(Distortions of the curve)
INPUT OUTPUT
(Analog) (Digital)
Analog to Digital Converters
Digital to Analog Converters
Digital to Analog Converters
INPUT
(Digital)
OUTPUT
(Analog)
Sound Summary
◼ There are 44,100 points on the wave EACH
SECOND
◼ Each of the 44,100 points on the wave has a
unique value. (height of the wave)
◼ The value is the addition of all the harmonics
◼ These 44,100 values together become one
second of the sound file
◼ ADC and DAC covert the sounds
◼ .WAV, .AIF, .MP3, and .MID. Are common
extensions (c) Ron English, 2024
SECTION V
Y2K
A data problem
GEEK humor
Dear Cassius:
to:
1. ALL UPPER CASE
2. all lower case
3. Initial Capital Letters
PEOPLE,
(friends, co-workers, employees, students, experts)
WHOM I CONSULTED AND PROVIDED
FEEDBACK
◼ Kyle Anderson
◼ Tony D’Alfonso
◼ John Garner
◼ Henry Kaluzenski
◼ Hayden Raulin
◼ Dan Reid
◼ Katherine Wilson
SECTION VII
BIBLIOGRPHY
◼ Dale and Weems, "Pascal", D. C. Heath and Co, Lexington MA, 1987,
0-669-9570-2
◼ Glass and Ables, "Unix for Programmers and Users", Prentice Hall, Upper
Saddle River, NJ, 1999, 0-13-681685-1
Bibliography: H-J : page 7 of
◼ Halvorson, Michael, "Step by Step Visual Basic", Microsoft Press, Redmond WA, 1997,
1-57231-435-4
◼ Hansen, Angela, "Learn C Now", Microsoft Press, Redmond WA, 1988, 1-55615-130-6
◼ Hopcroft and Ullman, "Introduction to Automata Theory, Languages and Computation",
Addison-Wesley, Reading MA, 1979, 0-201-02988-X
◼ Hull and Day, "Computers and Problem Solving", Addison-Wesley, Reading MA,1970
◼ Hume and Barnard, "Programming Concepts and Paradigms", Holt Software, Toronto,
ON, 1997, 0-921897-27-0
◼ Hume and Holt, "Introduction to Computer Science Using Turing", Holt Software,
Toronto, ON, 1990, 0-921598-6-8
◼ Hume, J. N. P., "Turing Tutorial Guide", Holt Software, Toronto, ON, 1991, 0-921598-1-
7
Bibliography: K : page 8 of 17
◼ Kendall and Kendall, "Systems Analysis and Design", Prentice Hall, Upper Saddle River,
NJ,1999, 0-13-646621-4
◼ Kernighan and Pike, "The Unix Programming Environment", Prentice Hall, Upper Saddle
River, NJ, 1984, 0-13-937699-2
◼ Kernighan and Ritchie, "The C Programming Language", Prentice Hall, Upper Saddle River,
NJ, 1978, 0-13-110370-9
◼ Knecht, Ken, "Advanced quick C", Scott Foresman and Company, Glenview. IL, 1989, 0-673-
38396-2
◼ Kochan and Wood, "Exploring the Unix System", SAMS Publishing, Indiana, 1992, 0-672-
48516-8
◼ Kolman and Busby, "Discrete mathematical Structures for Computer Science", Prentice Hall,
Upper Saddle River, NJ, 1987, 0-13-216003-X
Bibliography: K : page 9 of 17
◼ Korth and Silberschatz, "Database Systems Concepts", McGraw-Hill, New York, 1991,
0-7-44754-3
◼ Kruse, Tondo and Leung, "Data Structures and Program Design in C", Prentice Hall,
Upper Saddle River, NJ, 1997, 0-13-288366-X
Bibliography: L : page 10 of 17
◼ MacDonald, Michael, "Microsoft Visual Basic 5 Exam Cram", Certification Insider Press,
Albany NY, 1998, 1-57610-236-X
◼ Mano, Morris, "Digital Design", Prentice Hall, Upper Saddle River, NJ, 1991, 0-13-
212937-X
◼ Marpet, Mark I, "Visual Basic 5.0, Brief Course", Glencoe McGraw-Hill, New York NY,
1999, 0-2-803083-4
◼ Mueller and Page, "Symbolic Computing with Lisp and Prolog", John Wiley and Sons,
New York, 1988, 0-471-60771-1
◼ Niedelman and Carnine, "Learning Pascal; The Turbo Version", Scott Foresman and
Company, Glenview. IL, 1988,0-673-38019-X
Bibliography: O-R : page 12 of 17
◼ Parsons and Oja, "Computer Concepts", Thompson Learning, Cambridge, MA., 2000, 0-7600-
6499-7
◼ Perry, Greg, "Absolute Beginner's Guide to Programming", SAMS Publishing, Indiana, 1993,
◼ Prata and Martin, "Unix system 5 Bible", SAMS Publishing, Indiana, 1987, 0-672-22562-X
◼ Presley and Corica, "A Guide to Programming in Turbo Pascal", Lawrenceville Press,
Pennington, NJ, 1986, 0-931717-41-8
◼ Reference, "Visual Basic 5 ActiveX Controls Reference", Microsoft Press, Redmond WA, 1997,
1-57231-508-3
◼ Schneider, David I., "Introduction to Programming Using Visual Basic 5.0, Third Edition",
Prentice Hall, Upper Saddle River, NJ, 1998, 0-13-875857-3
◼ Schwartz and Malluf, "Using VB Script", Que, Indianapolis, IN, 1996, 0-7897-809-4
◼ Shafer, Dan, "Advanced Turbo Prolog Programming", SAMS Publishing, Indiana, 1987, 0-672-
22573-5
◼ Shelly, Cashman and Forsythe, "Turbo Pascal Programming", Boyd & Fraser Publishing,
Boston MA, 1987, 0-87835-252-X
◼ Sobell, Mark, "A Practical Guide to Linux", Addison-Wesley, Reading MA,1997, 0-201-89549-8
Bibliography: S : page 14 of 17
◼ Sobell, Mark, "Unix System 5; A Practical Guide", Addison-Wesley, Reading MA, 1995, 0-8053-
7566-X
◼ Stallings, William, "Data and Computer Communications", Collier Macmillan Canada, Toronto,
1991, 0-2-415454-7
◼ Stephens, Rod, "Advanced Visual Basic Techniques", John Wiley and Sons, New York,1997, 0-
471-18881-6
◼ Stephens, Rod, "Ready-to-Run Visual Basic Algorithms", John Wiley and Sons, New York,1998,
0-471-24268-3
◼ Stephens, Rod, "Ready-to-Run Visual Basic Code Library", John Wiley and Sons, New York,
1999, 0-471-33345-X
◼ Stephens, Rod, "Visual Basic Algorithms", John Wiley and Sons, New York,1996,0-471-13418-
X
Bibliography: S : page 15 of 17
◼ Stevens and Watkins, "Advanced Graphics Programming in Turbo Pascal", M & T Books,
Redwood City, CA, 1991, 1-55851-132-6
◼ Teft, Lee, "Programming in Turbo Pascal", Prentice Hall, Upper Saddle River, NJ,1989,
0-13-729054-3
◼ Tenenbaum and Augenstein, "Data Structures using Pascal", Prentice Hall, Upper
Saddle River, NJ, 1986, 0-13-196668-5
◼ The Mandelbrot Set, "Advanced Visual Basic 5", Microsoft Press, Redmond WA,1997, 1-
57231-414-1
Bibliography: U - Z: page 17 of 17
◼ Wang, Wallace, "Visual Basic 6 for Dummies", IDG Books, Foster City CA.,1998, 0-7645-
370-7
◼ Webb, Plungjan and Drakard, "Instant Java Script", McGraw-Hill, New York,2001, 0-7-
212994-8
◼ West, Tom, "Object Oriented Programming for Educators", Holt Software, Toronto, ON,
2000
SECTION VII
WEB SITES
ACCESSED
By Ron English