Incorrect Lab Work

Submitted by: Submitted by

Views: 243

Words: 391

Pages: 2

Category: Science and Technology

Date Submitted: 09/22/2013 01:04 PM

Report This Essay

Name: Grade: __________

Title: Converting decimal numbers to binary

I. OBJECTIVES

In this lab, you will develop an algorithm to convert decimal numbers to binary numbers. Then, apply the algorithm to several decimal numbers to obtain their binary equivalent.

II. PROCEDURE

To convert a decimal number to its equivalent binary number, use the following procedure.

Divide the decimal number by two and record the quotient and remainder, R. The quotient obtained is the next number to be divided by two. The remainder is the value of the binary digit for that position. Continue the division until the answer is 0 with a remainder of 1. The remainder is the most significant bit of the binary conversion.

The procedure below demonstrates how to convert the decimal number 12 to its four bit binary equivalent.

12 / 2 = 6 R 0 LSB

6 / 2 = 3 R 0

3 / 2 = 1 R 1

1 / 2 = 0 R 1 MSB

Four Bit Binary equivalent 1 1 0 0

Problems:

1. Using the process described above, convert the following decimal numbers to their four bit binary equivalent. Record your results.

a. 10 = 1 0 1 0

b. 15 = 1 1 1 1

2. What is the largest decimal number that can be generated in four binary bits? How did you arrive at this result?

Any decimal number that would result in remainder 1 in every category, since the highest binary bit is 1. That would equal the decimal number 15.

3. Extend the process described above and convert the following decimal numbers to their eight bit binary equivalent. Record your results.

a. 128 = 0100 0000

b. 250 = 1111 1010

4. What is the largest decimal number that can be generated in eight binary bits? How did you arrive at this result? Any decimal number that would result in remainder 1 in every category, since the highest binary bit is 1. That would equal the decimal number 511.

5. Describe in...