Blog 4
Problem 1:
a. 12
b. 42
c. 0
d. a * b
Problem 2:
a. 5
b. 4
c. 7
d. a/b
Problem 3:
a. Strange: a=6
b. weird: a=8; b=4; Strange: a=12
c. Strange: a=4; really weird: a=8; b=4; Strange:a=12
d. a=3; Strange: a=3; really weird: a=6; b=3; strange: a=9
Problem 4:
a. 1
b. 3
Extra Credit: It states which power of 2 the variables are.
Question 1. a. 1011. Decimal= 11. Hexadecimal= B. b. 10101. Decimal= 21. c. 10010110. Decimal= 150. d. 1111111. Decimal= 127. Question 2. a. 8. Binary= 1000. Hexadecimal= 8. b. 63. Binary= 1000001.Hexadecimal= 3f. c. 113. Binary= 1110001. Hexadecimal= 71. d. 97. Binary= 1100001. Hexadecimal= 61. Question 3. a. 200 MB * (8Mb/MB) * (128kb/1Mb) * (sec/56kb)= 1871.24 sec b.200 MB * (8Mb/MB) * (sec/5Mb)= 320 sec c. 200 MB * (8Mb/MB) * sec/10Mb)= 160 sec Question 4. 60MB*(8Mb/1MB)*(sec/3Mb)= 480/3= 160 sec. 2.5 min/ MB 60 min * (MB/2.5)= 24 MB/ hr (24 MB/hr)*(24 hr/day)*(30 days/month)= 17280 MB/month. |