0% found this document useful (0 votes)
39 views

Tugas PSJ 2: Nama: Bintang Primayandi Tugas: PJK 2 Latihan 1 1. Konversi Bilangan Decimal Berikut Ke Biner

This document contains a student's homework assignment on binary and decimal number conversions. [1] The student provides examples of converting decimal numbers to binary and binary numbers to decimal. Decimal numbers 15, 89, 134, and 202 are converted to binary, while binary numbers 11011011, 00011000, 01001001, and 01111111 are converted to decimal. [2] Further practice problems involve converting IP addresses and numbers between binary and decimal formats. IP addresses like 192.168.2.10 and 172.16.1.24 are converted between binary and decimal.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Tugas PSJ 2: Nama: Bintang Primayandi Tugas: PJK 2 Latihan 1 1. Konversi Bilangan Decimal Berikut Ke Biner

This document contains a student's homework assignment on binary and decimal number conversions. [1] The student provides examples of converting decimal numbers to binary and binary numbers to decimal. Decimal numbers 15, 89, 134, and 202 are converted to binary, while binary numbers 11011011, 00011000, 01001001, and 01111111 are converted to decimal. [2] Further practice problems involve converting IP addresses and numbers between binary and decimal formats. IP addresses like 192.168.2.10 and 172.16.1.24 are converted between binary and decimal.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 2

TUGAS PSJ 2

Nama : Bintang Primayandi


Tugas : PJK 2

• Latihan 1
1. ● Konversi bilangan decimal berikut ke biner:
- 15 = 00001111
8+4+2+1 = 15
- 89 = 01011001
64+16+8+1 = 89
- 134 = 10000110
128+4+2 = 132
- 202 = 11001010
128+64+8+2 = 202
2. ● Konversi bilangan biner berikut ke decimal:
- 11011011 = 128+64+16+8+2+1 = 219
- 00011000 = 16+8 = 24
- 01001001 = 64+8+1 =73
- 01111111 = 64+32+16+8+4+2+1 = 127

• Tugas 2
1. ● Konversi bilangan desimal berikut ke biner:
- 192.168.2.10 = 11000000.10101000.00000010.00001010
2^7 = 128 2^7 = 128 2^1 = 2 2^3 = 8
2^6 = 64 2^5 = 32 2^1 = 2
= 192 2^3 = 8 = 10
= 168
- 172.16.1.24 = 10101100.00010000.00000000.00011000
2^7 = 128 2^4 = 16 2^0 =1 2^4 = 16
2^5 = 32 2^3 = 8
2^3 = 8 = 24
2^2 = 4
= 172
- 10.12.34.1 = 00001010.00001100.00100010.00000001
2^3 = 8 2^3 = 8 2^5 = 32 2^0 = 1
2^2 = 2 2^2 = 4 2^2 = 2
= 10 = 12 = 34
- 202.134.5.145 = 11001010.10000110.00000101.10010001
2^7 = 128 2^7 = 128 2^2 = 4 2^7 = 128
2^6 = 64 2^2 = 4 2^0 = 1 2^4 = 16
2^3 = 8 2^1 = 2 =5 2^0 = 1
2^2 = 2 = 134 = 145
= 202
2. ● Konversi bilangan biner berikut ke desimal:
- 11000000.10101000.00000101.00000010 = 192.168.5.2
2^7 = 128 2^7 = 128 2^2 = 4 2^1 = 2
2^6 = 64 2^5 = 32 2^1 = 1
= 192. 2^3 = 16 = 5.
= 168.
- 10101100.00001000.00001011.00000001 = 172.8.11.1
2^7 = 128 2^3 = 8. 2^3 = 8 2^0 = 1
2^5 = 32 2^1 = 2
2^3 = 8 2^0 = 1
2^2 = 4 = 11.
= 172.
- 11000000.10101000.00011000.00000111 = 192.168.24.7
2^7 = 128 2^7 = 128 2^4 = 16 2^2 = 4
2^6 = 64 2^5 = 32 2^3 = 8 2^1 = 2
= 192. 2^3 = 8 = 24. 2^0 = 1
= 168. =7
- 00001010.00001010.00011110.00000100 = 10.10.30.4
2^3 = 8 2^3 = 8 2^4 = 16 2^2 = 4
2^1 = 2 2^1 = 2 2^3 = 8
= 10. = 10. 2^2 = 4
2^1 = 2
= 30.

You might also like