Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

L Number = [L1, L2, L3, L4, L5, L6, L7, L8] Example: L Number=12345678, L1=1, L2=2, L3=3, L4=4, L5=5, L6=6, L7=7, L8=8; Decimal representation L1L2L3

L Number = [L1, L2, L3, L4, L5, L6, L7, L8] Example: L Number=12345678, L1=1, L2=2, L3=3, L4=4, L5=5, L6=6, L7=7, L8=8; Decimal representation L1L2L3 is 123 (One hundred and twenty-three in base 10)

1. Compute the sum of 1000 0000 and the binary output of the following program. Assume the sum is a 2s complement representation and convert it to decimal representation.

int Digit= [L2, L0, L3, L3, L1, L4, L5, L4];

for (i=0; i<8, i++)

{

if Digit [i]>=4

Digit[i]=1;

else

Digit[i]=0;

}

2. Convert decimal representation L5L4 and -60 (negative sixty) to 2s complement representations TC1 and TC2, and subtract TC1 from TC2. Is the result correct or not? Why?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago