Share
Explore BrainMass

Computer Math

Show all your work .

1) Perform the following operation using the BCD format.
a. 45 * 28

2) Perform the following operations using the two's complementary representation using 8 bit numbers.
a. 14 - 65
b. 125 + 13

3) Perform the following operations using the 8-digit, excess-50 floating-point notation. Use 0 to represent a positive sign and 5 to represent a negative sign.
a. 825434.756 + 34958.7345849
b. 0.0000000000234 * 2340958732.4590873245

Solution Preview

1. Convert each BCD to 8 bits for multiplication:

45 = 0000 0100 0000 0101
28 = 0000 0010 0000 1000

Perform digit-by-digit multiplication:

5x8:
0000 0101
x 0000 1000

= 0010 1000
/ 0000 1010

= 0000 0100 Remainder 0000 0000
= 0000 0100 0000 0000 = 40

4x8:
0000 0100
x 0000 1000

= 0010 0000
/ 0000 1010

= 0000 0011 Remainder 0000 0010
Add 8-bit 0's since it is a tens digit

= 0000 0011 0000 0010 0000 0000 = 320

5x2:
0000 0101
x 0000 0010

= 0000 1010
/ 0000 1010

= 0000 0001 Remainder 0000 0000
Add 8-bit 0's since it is a tens digit

= 0000 0001 0000 ...

Solution Summary

This posting contains solution to the given problems.

$2.19