Answer:
see explaination and attachment
Explanation:
5.
To convert any byte address, By, to word address, Wo, first divide By by No, the no. of bytes/word, and ignores the remainder. To calculate a byte offset, O, in word, calculate the remainder of By divided by No.
i) 0 : word address = 0/8 = 0 and offset, O = 0 mod 8 = 0
ii) 9 : word address = 9/8 = 1 and offset, O = 9 mod 8 = 1
iii) 27 : word address = 27/8 = 3 and offset, O = 27 mod 8 = 3
iv) 31 : word address = 31/8 = 3 and offset, O = 31 mod 8 = 7
v) 120 : word address = 120/8 = 15 and offset, O = 120 mod 8 = 0
vi) 256 :word address = 256/8 = 32 and offset, O = 256 mod 8 = 0
6. see attachment for the python programming screen shot and output