Question

In: Computer Science

Fill in the following table to show how the given integers are represented, assuming 16 bits...

Fill in the following table to show how the given integers are represented, assuming 16 bits are used to store values and the machine uses 2’s complement notation. (This is not necessarily MARIE.) Give values in the last two columns in hexadecimal as they would appear memory assuming the byte at address a is on the left and the byte at the address a+1 is on the right.

2-Byte Big

2-Byte Little

Integer

Binary

Hex

Endian (hex)

Endian (hex)

Example

-540

1111 1101 1110 0100

FDE4

FD E4

E4 FD

a)

12

b)

-12

c)

128

d)

-128

e)

65,000

f)

-65,000

byte a | byte a+1

byte a | byte a+1

Solutions

Expert Solution

Solution:

Integer Binary Hex 2-Byte Big Endian (hex) 2-Byte Little Endian (hex)
(a) -540 1111 1101 1110 0100 FDE4 FD E4 E4 FD
(b) 12 0000000000001100 000C 00 0C 0C 00
(c) -12 1111111111110100 FFF4 FF F4 F4 FF
(d) 128 0000000010000000 0080 00 80 80 00
(e) -128 1111111110000000 FF80 FF 80 80 FF
(f) 65,000 1111110111101000 FDE8 FD E8 E8 FD
(g) -65,000 0000001000011000 0218 02 18 18 02

Please give thumbsup, if you like it. Thanks.


Related Solutions

Assuming integers are represented as 16-bit words and negative numbers are represented using the 2's complementary...
Assuming integers are represented as 16-bit words and negative numbers are represented using the 2's complementary method, convert the following hexadecimal numbers to decimal numbers a. 0xCAFE, b. 0x4DAD, c. 0xFACE
Suppose 8 bits are used to store signed integers. The largest value that can be represented...
Suppose 8 bits are used to store signed integers. The largest value that can be represented is 0111 1111. What is the decimal value of that number? 127 128 177 178 2.Suppose a 6-bit storage unit is used to store unsigned integers. What is the binary representation of the decimal number 67? 01000011 1000011 010000 000011
Assuming integers are represented as 32-bit words and negative numbers are represented using the 2's complimentary...
Assuming integers are represented as 32-bit words and negative numbers are represented using the 2's complimentary method convert the following decimal numbers to hexadecimal numbers (show your work). a. -1314, b. 2020
2) Show how each of the following signed, decimal integers would be stored in 16-bit two's...
2) Show how each of the following signed, decimal integers would be stored in 16-bit two's complement format. Give your answer in hexadecimal. a) -21 (5 points) b) 4096 (5 points)
Given the following information, fill out the following table and determine what should be the optimal...
Given the following information, fill out the following table and determine what should be the optimal capital structure for Concours Corp. The company has $10 million in assets, a marginal tax rate of 30%, and each million in debt used causes Rd to increase by 1.0% and Rs to increase by .8%. Debt Rd Rs WACC 0 -- 12% 12% $1 Mill $2 Mill $3 Mill $4 Mill $5 Mill $6 Mill $7 Mill $8 Mill
Trace the following program. This means you need to fill the table in which you show...
Trace the following program. This means you need to fill the table in which you show the output of each executed instruction as if you are the computer executing the program. Put your comments under the table. #include<iostream> using namespace std; int main () { cout.setf(ios :: fixed); cout.setf(ios :: showpoint); cout.precision(2); int A=7.5, B=2.5, C;                                                                                        //statement 1 double X,Y; char Letter; C = A/B;                                                                                                          //statement 2 X = 1.0*A/B;                                                                                                    //statement 3 if (C<X)         Letter =...
Fill in the blanks on the following table
 Fill in the blanks on the following tableE&pshareholder basisdistributiondividendreturn of capitalcapital gain20,000300,00080,000120,00010,000170,000220,000100,000170,00020,000080,000<20,000>50,000170,000
Please fill in the table below. Show how expansionary activities conducted by the Federal Reserve impact...
Please fill in the table below. Show how expansionary activities conducted by the Federal Reserve impact credit availability, the money supply, interest rates, and security prices. Do the same for contractionary activities (↑, ↓ or NC)   Expansionary ↑, ↓ or NC Contractionary ↑, ↓ or NC Credit Availability Credit Availability Money Supply Money Supply Interest Rates Interest Rates Security Prices Security Prices
Given the following cash flows for a two mutually exclusive projects (A&B) and assuming 16% cost...
Given the following cash flows for a two mutually exclusive projects (A&B) and assuming 16% cost of capital; answer the next 2 questions: year Project A Project B 0 -5000 -1000 1 2500 600 2 2500 600 3 2500 600 1)  Which project should be accepted, if any and why? Project B; it has a higher IRR and PI Neither project should be accepted, they both have negative NPVs Both project should be accepted; they have IRRs greater than the cost...
Fill in the blanks to complete the following table.
Fill in the blanks to complete the following table.SymbolIon FormedNumber of Electrons in IonNumber of Protons in IonF__________9Te_____54_____II−_______________Mg2+_____12Part AComplete the first column of the table.Express your answer as a chemical symbol.Part BComplete the second column of the table.Express your answer as ions. Enter your answers in order given in the table, from top to bottom, separated by a comma.Part CComplete the third column of the table.Express your answer as integers. Enter your answers in order given in the table, from...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT