Binary And Hexadecimal Numeration And Logical Operations Worksheet - Object Oriented Programming In Java, Marian Manyo Page 7

ADVERTISEMENT

J A V A
L A B
M A N U A L
E x e r c i s e 1 . 6 Follow the algorithm to convert the indicated decimal numerals to binary. Clearly show
your work.
A. Using any method to convert the decimal numeral 3.25 to a terminating binary numeral.
B. Using the algorithm, convert the decimal numeral 0.7 to a repeating binary numeral.
1.3 ADDING BINARY NUMERALS
When adding decimal numerals there are 100 combinations of sums, assuming order is important. Since
there are only two binary digits, there are only four possible addtion combinations. These combinations
and their sums are
0
0
1
1
+ 0
+ 1
+ 0
+ 1
0
1
1
10
2
With these addition facts and your knowledge of how to add decimal numerals, you should be able to add
using binary numerals. Add the columns from right to left. If the result is more than one digit record the
1's digit and carry the remaining digit to the next column to the left. In the example, the related decimal
addition problem is also recorded for verification purposes.
carry bit
E x a m p l e
1
1
1 0 1 0 1
21
+ 1 1 1 0 0
+ 28
1 1 0 0 0 1
49
M A R I A N M A N Y O , M A R Q U E T T E U N I V E R S I T Y
P A G E 1 . 7

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education