Cometa Assignment 8
Cometa Assignment 8
Cometa Assignment 8
GED102 – A13
January 15 2020
Assignment 8
Ex 1.1
=47 +26=73
73 13
=73 ÷15= ∨4
15 15
25 6
= =2 , so therefore 25 mod 9 = 6
9 9
−32 5
= =3 , so therefore -32 mod 9 = -5
9 9
c. (13)(32) mod 14
=(13)(32) = 416
416 5
= =29 ,
14 7
=9 ×5=45
=2 – 25 = -23
=23 mod 12 = 11
=11 + 12 = 1
4. In exactly 125 days, the country will commemorate Labor Day (May 1).
=125 mod 7 = 6
=
For numbers 5 and 6, determine whether the given ISBN code is valid or not. If the
= x 13=10−3
= x 13=7
= x 13=10−11
= x 13=−1
For numbers 7 and 8, determine whether the given UPC number is valid or not. If the
7. 3 – 8173 – 115208 – 7
= x 12=10−( 75 mod 10 )
= x 12=10−1
= x 12=9
= x 12=10−( 70 mod 10 )
= x 12=10−0
= x 12=10
For numbers 9 and 10, determine whether the given credit card number is valid or not.
9. 3 – 8173 – 115208 – 7
=Sum = 6 + 8 + 2 + 7 + 6 + 1 + 2 + 5 + 4 + 0 + 1 + 6 + 7 = 55
=55 mod 10 = 1
=Sum = 0 + 0 + 0 + 3 + 1 + 8 + 6 + 0 + 1 + 1 + 0 + 9 + 6 + 6 = 41
=41 mod 10 = 1
Ex 2.1
1. Determine the decimal number that is equivalent to each of the given binary numbers:
a. 1001011
=1 ( 26 ) +0 ( 25 ) +0 ( 2 4 ) +1 ( 23 )+ 0 ( 22 ) +1 ( 2 ) +1
= 64 + 0 + 0 + 8 + 0 + 2 + 1
= 75
b. 110011 = 51
=
c. 101101 = 45
- 010010000000001011010000001110001011011000101100100000001100000011
010000101000000100101110000000001101100000011001110011
- 001011100010000001011001001001001010111000011001010000010100001010
000100011010000010110011000001010001000001010000000010001011001110
100000000110000101100111001101111011100000001001011100000001100010
010011000101
a. 001110111100100000000001001100001011001110011000001010001000001010
00001000001000010010110001001100001000001001011100010110011
b. 01101 00001 01011 00101 00000 00101 10110 00101 10010 11001 00000 00001
00011 10100 00100 10111 10111 00000 00001 10111 11010 10111 01010
010011