Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Two decimal numbers, A and B , are derived from your student ID ( SID ) number. A is ( 1 0 ) 1 0

Two decimal numbers, A and B, are derived from your student ID (SID) number. A is
(10)10 plus the decimal number formed by the 4th and 5th digits of your SID number. B is
(25)10 plus the decimal number formed by the 6th and 7th digits of your SID number. For
example, if your SID number is 22373792 A , then A is 83 and B is 104.
Also, let C=0-A=-A and D=0-B=-B. In the above example, C is -83,D is -104.
use the following SID number to solve this question 21084996 A
(a) By considering the stated binary representations, fill in the blanks in the Answer
section for part (a) below.
(b)[Unsigned arithmetic] Consider A and B in their 8-bit unsigned binary form. Perform
the subtraction of (i)A-B, and (ii)B-A using the method that takes 2 s complement
operation at the subtrahend. Write your answer in 8-bit binary form.
(c)[Signed arithmetic] Consider C and D in their 8-bit signed 2 s complement form.
Perform (i)C+D, and (ii)C-D using signed binary addition and signed binary
subtraction respectively. Indicate in each case whether an overflow has occurred. If
overflow does not occur, write down the answer in 8-bit signed 2 s complement format.
Answers for Ouestion 1
Marks:
Fill in the values of A and B below.
A=
,B=
(a)8-bit unsigned binary representation
Take 1s complement on the 8-bit unsigned binary representation
Take 2s complement on the 8-bit unsigned binary representation
8-bit signed magnitude representation
8-bit signed 2 s complement representation
image text in transcribed

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

State three justifications given for the existence of options.

Answered: 1 week ago