# Perform addition and subtaction on binary numbers

9.

Convert the following decimal numbers into 8?bit binary numbers as required for 2's complement math, and perform the indicated operations.

Note:

Remember that positive numbers are represented in signed-magnitude format in 2's complement math

a)

+39

+19

=

b)

+39

-19

=

c)

-39

+19

=.

https://brainmass.com/computer-science/algorithms/perform-addition-subtaction-binary-numbers-12664

#### Solution Preview

Binary Representation of the numbers (n=8 bits)

a) +39 = 00100111 ; +19=00010011 ;

+39 + +19 =00100111+00010011 = 00111010 ...

#### Solution Summary

The solution provides help to perform addition and subtraction on binary numbers is achieved.

$2.49