معلومات الواجب (Homework Details):
المادة: EETE 2340 – DIGITAL LOGIC FUNDAMENTALS
المرجع: "Digital Fundamentals", 11th Edition, by Thomas Floyd
الموعد النهائي: Saturday May 30, 2026
المادة: EETE 2340 – DIGITAL LOGIC FUNDAMENTALS
المرجع: "Digital Fundamentals", 11th Edition, by Thomas Floyd
الموعد النهائي: Saturday May 30, 2026
Q1
Convert 1111111.111112 into decimal.
لتحويل العدد نقسمه إلى جزء صحيح وجزء كسري، ونضرب كل بت في وزنه:
Integer part:
11111112 = 26 + 25 + 24 + 23 + 22 + 21 + 20
= 64 + 32 + 16 + 8 + 4 + 2 + 1 = 127
Fractional part:
.111112 = 2-1 + 2-2 + 2-3 + 2-4 + 2-5
= 0.5 + 0.25 + 0.125 + 0.0625 + 0.03125 = 0.96875
Add both parts: 127 + 0.96875
Answer: 127.9687510
Q2
What is the highest decimal number represented by eleven binary digits.
أكبر رقم عشري يمكن تمثيله بـ n من الخانات الثنائية هو (2n - 1):
Formula for highest number with n bits: 2n - 1
Here, n = 11.
Value = 211 - 1
Value = 2048 - 1 = 2047
Answer: 2047
Q3
How many binary digits are required to represent decimal 16010.
نبحث عن أصغر قوة للرقم 2 تكون أكبر من أو تساوي 160:
We need to find n such that 2n-1 ≤ 160 < 2n
27 = 128 (Too small, 7 bits is not enough)
28 = 256 (Enough, so 8 bits are required)
Verification: 16010 = 128 + 32 = 101000002 (which has exactly 8 digits).
Answer: 8 binary digits
Q4
Convert decimal 0.097510 into binary using sum of weights method.
نبحث عن أوزان الكسور (0.5, 0.25, 0.125, 0.0625 ...) التي مجموعها يعطي 0.0975:
Fractional weights:
2-1=0.5, 2-2=0.25, 2-3=0.125, 2-4=0.0625, 2-5=0.03125...
0.0975 is smaller than 0.5, 0.25, and 0.125.
Largest weight to fit: 2-4 (0.0625)
0.0975 - 0.0625 = 0.035
Next weight to fit: 2-5 (0.03125)
0.035 - 0.03125 = 0.00375
Next weight to fit: 2-9 (0.001953125)
0.00375 - 0.001953125 = 0.001796875
This continues... The binary value is approx: 2-4 + 2-5 + 2-9...
Answer: ~ 0.000110001...2