Question

In: Computer Science

I need this as soon as possible, please. It is due two hours and I need...

I need this as soon as possible, please. It is due two hours and I need to check my answers.

Problem-1

Calculate the Product of the following using refined multiplication method (show all steps in table)

                                                                6 X 3

Problem-2

Calculate the Product of the following using Booth’s Multiplication Algorithm (show all steps in table)

  1. 5 X (-4)
  2. (-3) X (-6)

Solutions

Expert Solution

Problem 1:- The flow chart of refined multiplication method is as follows:-

Using above algorithm, the multiplication is done as follows:-

Multiplicand = 6 =0110, Multiplier = 0011

Iteration Step Product
0 initial values 0000 0011
1 Add multiplicand to left half of product 0110 0011
Shift Product right 0011 0001
2 Add multiplicand to left half of product 1001 0001
Shift Product right 0100 1000
3 Shift Product right 0010 0100
4 Shift Product right 0001 0010

Since we iterate the loop 4 times (number of bits in multiplicand) therefore we stop the iteration, and hence get the result 00010010 which is decimal equivalent to 18 which is correct as 6*3 = 18.

Problem 2:- The flow chart of Booth's multiplication is as follows:-

Using above algorithm, the multiplication is done as follows:-

(a.) 5*(-4)

M = 5 = 0101, M'+1 = 1011

Q = -4 = 1100

Q0Q-1 Operation A Q Q-1 Count
0000 1100 0 100
00 ASHR A,Q,Q-1 0000 0110 0 011
00 ASHR A,Q,Q-1 0000 0011 0 010
10

A = A-M

ASHR A,Q,Q-1

1011

1101

1001

1

001

11 ASHR A,Q,Q-1 1110 1100 1 000

Since the value of Count become 0, therefore the iteration will stop and we get the result R = AQ = 11101100 which is 2's complement of 00010100 that is 20, therefore R = -20 which is correct.

(b.) -3*(-6)

M = -3 = 1101, M'+1 = 0011

Q = -6 = 1010

Q0Q-1 Operation A Q Q-1 Count
0000 1010 0 100
00 ASHR A,Q,Q-1 0000 0101 0 011
10

A = A-M

ASHR A,Q,Q-1

0011

0001

1010

1

010

01

A=A+M

ASHR A,Q,Q-1

1110

1111

0101

0

001

10

A=A-M

ASHR A,Q,Q-1

0010

0001

0010

1

000

Since the value of Count become 0, therefore the iteration will stop and we get the result R = AQ = 00010010 which is equivalent to 18, which is correct.


Related Solutions

i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK...
i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK OF Business Ideas based on a indian restaurants Purpose: Develop and formulate an idea for your own business. Money is not an issue for this assignment. Envision that you get all the funding you need to start it up. Task: Write a short abstract (200-250 Words) describing your business idea in the discussion section of this assignment. What is the basic idea? What are...
i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK...
i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK OF Business Ideas based on a indian restaurants Purpose: THIS IS THE QUESTION : Develop and formulate an idea for your own business. Money is not an issue for this assignment. Envision that you get all the funding you need to start it up. Task: Write a short abstract (200-250 Words) describing your business idea in the discussion section of this assignment. What is...
i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK...
i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK OF Business Ideas based on a indian restaurants Purpose: Develop and formulate an idea for your own business. Money is not an issue for this assignment. Envision that you get all the funding you need to start it up. Task: Write a short abstract (200-250 Words) describing your business idea in the discussion section of this assignment. What is the basic idea? What are...
i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK...
i REALLY NEED REPLY AS SOON AS POSSIBLE: PLEASE PLEASE MAKE THE ASSIGNMENT ON THIS TASK OF Business Ideas based on a indian restaurants Purpose: Develop and formulate an idea for your own business. Money is not an issue for this assignment. Envision that you get all the funding you need to start it up. Task: Write a short abstract (200-250 Words) describing your business idea in the discussion section of this assignment. What is the basic idea? What are...
Please I need The right answer for this question as soon as possible. A sag vertical...
Please I need The right answer for this question as soon as possible. A sag vertical curve (equal tangent) has PVI at station 212+00 and elevation 540.75 ft. The initial grade is -2.5% and the final grade is +4.5%. The length of the curve is 900 ft. Determine the following, 1. Stationing of the low point, PVC, and PVT. 2. Elevation at station 213+00, PVC, low point, and PVT.
I need an answer as soon as possible please...Thank you The following information relates to the...
I need an answer as soon as possible please...Thank you The following information relates to the HTM debt securities investments of Kiran Company during 2018: a.            February 1: The company purchased 9% bonds of Tempe Co. having a par value of $100,000 at 99 plus accrued interest. Interest is payable May 1 and November 1. Maturity date is 11/1/19. b.            May 1: Semiannual interest is received and amortization is updated. c.            July 1: 10% bonds of Flagstaff, Inc. were purchased....
Hello I need this assignment with citations and biography in APA style as soon as possible...
Hello I need this assignment with citations and biography in APA style as soon as possible 1. It has been found that when health care workers (physicians and nurses) do not practice healthy lifestyle behaviours, this has a negative impact on health promotion as they are less likely to encourage patients to practice healthy behavious. Locate any two validated instruments for measuring habits and personal attitudes of health care workers towards healthy lifestyle behaviours (eg not smoking, eating low risk...
Please answer as soon as possible, I will upvote if it is answered in 40 minutes....
Please answer as soon as possible, I will upvote if it is answered in 40 minutes. Suppose that a bond portfolio with a duration of 5 years is hedged using a futures contract in which the underlying asset has a duration of 14 years. What is likely to be the impact on the hedge of the fact that the 14-year rate is less volatile than the 5-year rate?
( I need answer as soon as possible). Que. Explain the accounting equation with example.  Use the...
( I need answer as soon as possible). Que. Explain the accounting equation with example.  Use the accounting equation to determine your net worth and identify your assets and liabilities . With this information, how would you increase your net worth in the future?
need as soon as possible please Following table shows information about the demand for apples in...
need as soon as possible please Following table shows information about the demand for apples in the wholesale mar- ket. Price, P ($/lb) Quantity Qd (lbs) 10. 0 8. 4 6 8 4. 12 2 16 (a) Draw a graph with Price (P) on the vertical axis and Quantity demanded (Qd) on the horizontal axis? (b) Write the equation for this inverse demand function. (c) What is the quantity demanded when P = $3/lb? Following table shows information about the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT