CS3500 Homework \"Data Interpretation\" Due: Wednesday, 9/26/2018 Assume that th
ID: 3754124 • Letter: C
Question
CS3500 Homework "Data Interpretation" Due: Wednesday, 9/26/2018 Assume that the following eight bytes are stored in memory Address x+7 x+6 x+5 x+4 x+3 x+2 x+1 Contents 11011101 01011011 10010110 11010111 01111000 01100101 11001010 Translate the memory contents into the following formats: 1. Assume the data represents ASCI codes of eight characters Xt2x Assume the data represents eight unsigned char integers. 2. 3. Assume the data represents four unsigned short integers 4. Assume the data represents four short integers 5. Assume the data represents two int type integers. 6. Assume the data represents two float real numbers. The IEEE 754 standard specifies a binary32 as having: Sign bit: 1 bit, Exponent: 8 bits; Fraction: 23 bits) 7. Assume the data represents a double real number. The IEEE 754 standard specifies a binary64 as having: Sign bit 1 bit, Exponent: 11 bits; Fraction: 52 bits)Explanation / Answer
1.Ascii range 1byte 0 - 127
x[0]=J(74)
x[1]=e(101)
x[2]=x(120)
x[3]=W(87)
x[4]=(23)
x[5]=[(91)
x[6]=](93)
x[7]=(127)
2.unsined char range 1byte 0-255
x[0]=202
x[1]=101
x[2]=120
x[3]=215
x[4]=150
x[5]=91
x[6]=221
x[7]=255
3.unsigned short range 2bytes 0-65535
x[0]=51813
x[1]=30935
x[2]=38491
x[3]=56831
4.short integer range 2bytes -32768 -> 32767
x[0]=-19045
x[1]=30935
x[2]=-5723
x[3]=-24063
5.int range 4bytes -2,147,483,648 -> 2,147,483,647
x[0]=-1248164056
x[1]=-375119360
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.