# Binary numbers

one page computer Number Systems Homework

Print out this assignment and do your work on it.

Objectives

• Utilize the ASCII (American Standard Code for Information Exchange) coding scheme
• Demonstrate understanding of the binary and hexadecimal number systems
• Convert between binary and decimal numbers
• Convert between hexadecimal and decimal numbers
• Convert between hexadecimal and binary numbers

Assignment

Example:

```    Question:
1. What is an algorithm?

1. An algorithm is a list of steps to solve a problem in a finite
amount of time.
```

Section A: Complete the exercise below utilizing the ASCII (American Standard Code for Information Exchange) coding scheme handed out in class, . Write your answer in the space provided.

Exercise using ASCII Code – 10 points

Write a short sentence in English (4 or more words). Translate each letter of each word including spaces and punctuation into its binary representation using the ASCII chart you were given. Note that lower case and upper case letters have different codes! (Don’t forget about spaces!)

 Example: A t1000001 1110100

Section B: Working with Binary and Hexadecimal Numbers – 100 points

1. How many different symbols are used in the decimal (base 10) number system? (3 points total) ___________

2. How many different symbols are used in the binary (base 2) number system? Write your answer in decimal and binary: (2 points total)

1. Decimal: ___________

2. Binary: ___________

3. How many different symbols are used in the hexadecimal (base 16) number system? Write your answer in decimal and hexadecimal: (2 points total)

1. Decimal: ___________

4. Consider the decimal (base 10) number system: (3 points per question, 9 points total)

1. How many different values can be represented in 3 decimal digits? ___________

2. What is the lowest (starting) value? ___________

3. What is the highest (ending) value? ___________

5. Consider the binary (base 2) number system: (3 points per question, 15 points total)

1. How many different values can be represented in 6 binary digits (bits)? ___________

2. What is the lowest (starting) value? ___________
Write it as a binary number. ___________

3. What is the highest (ending) value? ___________
Write it as a binary number. ___________

6. Convert the decimal number 66 to binary and find the ASCII character represented by this number. (3 points per question, 6 points total)

1. 6610   >   binary: ___________

2. 6610 is the ASCII character code for: ___________

7. Convert the decimal number 98 to binary and find the ASCII character represented by this number. (3 points per question, 6 points total)

1. 9810   >   binary: ___________

2. 9810 is the ASCII character code for: ___________

8. Convert the following decimal numbers to binary.
Show your work. (3 points per question, 15 points total)

1. 1010   >   binary: ___________

2. 1610   >   binary: ___________

3. 5710   >   binary: ___________

4. 10310   >   binary: ___________

5. 25510   >   binary: ___________

9. Convert the following binary numbers to decimal and hexadecimal.
Show your work. (3 points per question, 18 total points)

1. 011110102   >   decimal: ___________

3. 000111112   >   decimal: ___________

5. 101101012   >   decimal: ___________ 