Question

In: Computer Science

Provide the following operations in four-digit 10's complement math. All input is in ten's complement. Provide...

Provide the following operations in four-digit 10's complement math. All input is in ten's complement. Provide the output in both ten's complement and decimal sign and magnitude formats.

a) 1818 + 9282 =

b) 1808 + 1188 =

c) 1929 - 1818 =

d) 2828 - 9988 =

Solutions

Expert Solution

Solution

c) 1929 - 1818 =

Steps

1. At first, find 10's complement of the B(subtrahend).
2. Then add it to the A(minuend).
3. If the final carry over of the sum is 1, then it is dropped and the result is positive.
4. If there is no carry over, then 10's complement of the sum is the final result and it is negative.

Here A = 1929, B = 1818.
Find A - B = ? using 10's complement
First find 10's complement of B = 1818

Note : 10's complement of a number is 1 added to it's 9's complement number.
9's complement of 1818 is

9 9 9 9
- 1 8 1 8
8 1 8 1



Now add 1 : 8181 + 1=8182

Now Add this 10's complement of B to A

1 1 1 1
1 9 2 9
+ 8 1 8 2
1 0 1 1 1

The left most bit of the result is called carry and it is ignored.
So answer is 0111

0111 is the answer in 10s complement

(111)10 is the answer in decimal notation

---

d) 2828 - 9988 =

Before solution we need to understand the steps involved

1. At first, find 10's complement of the B(subtrahend).
2. Then add it to the A(minuend).
3. If the final carry over of the sum is 1, then it is dropped and the result is positive.
4. If there is no carry over, then 10's complement of the sum is the final result and it is negative.

Here A = 2828, B = 9988.
Find A - B = ? using 10's complement
First find 10's complement of B = 9988

Please note that 10s complement of a number is 1 added to it's 9's complement number.


9 9 9 9
- 9 9 8 8
0 0 1 1



Now add 1 : 0011 + 1=0012

Now Add this 10's complement of B to A

1
2 8 2 8
+ 0 0 1 2
2 8 4 0

Here there is no carry, answer is - (10's complement of the sum obtained 2840)

Note : 10's complement of a number is 1 added to it's 9's complement number.
9's complement of 2840 is

9 9 9 9
- 2 8 4 0
7 1 5 9



Now add 1 : 7159 + 1=7160
So answer is -7160

in decimal

(-7160)10

---

i am good at 10s complement subtraction

thats why solved with detailed explanation

really sorry couldnt able to solve the 10s complement addition

all the best


Related Solutions

Convert each of the following 5-digit 6’s complement base 7 numbers to 9-digit 4’s complement base...
Convert each of the following 5-digit 6’s complement base 7 numbers to 9-digit 4’s complement base 4. Be careful, show all your reasoning/arithmetic, and make no unwarranted assumptions! (a) 50135 (b) 11402
Q2. The 9’s complement of a decimal digit d (0 to 9) is defined to be...
Q2. The 9’s complement of a decimal digit d (0 to 9) is defined to be 9 - d. A logic circuit produces the 9’s complement of an input digit where the input and output digits are represented in BCD. Label the inputs A, B, C, and D, and label the outputs W, X, Y and Z. (a) Determine the minterms and don’t-care minterms for each of the outputs. (b) Determine the maxterms and don’t-care maxterms for each of the...
For the following operations: write the operands as 2's complement binary numbers then perform the addition...
For the following operations: write the operands as 2's complement binary numbers then perform the addition or subtraction operation shown. Show all work in binary operating on 8-bit numbers. 7 + 3 7 - 3 3 - 7
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers,...
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers, • perform the operation shown, • show all work in binary operating on 4-bit numbers, and • identify overflow if necessary. a) 4 + 2 b) 4 – 2 c) 2 – 4 d) 4 + 4
Write a program in C that takes as input a four-digit hexadecimal number and prints the...
Write a program in C that takes as input a four-digit hexadecimal number and prints the next 10 hexadecimal numbers. Define a hexadecimal number as int hexNum[4] Allow upper- or lowercase letters for input and use uppercase letters for the hexadecimal output. For example, 3C6f should be valid input and should produce output 3C6F, 3C70, 3C71, . . . .
​​​​​​​ASAP PLEASE Write a python code that prompts a user to input a 10-digit phone number....
​​​​​​​ASAP PLEASE Write a python code that prompts a user to input a 10-digit phone number. The output of your code is the phone number’s  area code, prefix and line number separated with a space on a single line e.g INPUT 2022745512 OUTPUT 202 274 5512 write a code that will prompt a user to input 5 integers and output its largest value. PYTHON e.g INPUT 2 4 6 1 3 OUTPUT Largest value is: 6
Please show all work: Determine the 2’s complement equivalent of the following numbers in 8-bit format...
Please show all work: Determine the 2’s complement equivalent of the following numbers in 8-bit format (N.B: You must show your work for full credit)! -12 = -9 =
Use the following game to answer questions 8-10. Be sure to show all of your math...
Use the following game to answer questions 8-10. Be sure to show all of your math step-by-step. Alcoa and Kaiser, duopolists in the market for primary aluminum ingot, choose prices of their 500 foot rolls of sheet aluminum on the first day of the month. The following payoff table shows their monthly payoffs resulting from the pricing decisions they can make. Alcoa High price Low price Kaiser High price A $400, $500 B $175, $575 Low price C $525, $200...
add the following numbers using 16-bit 2's complement. show all the steps and calculations. Please also...
add the following numbers using 16-bit 2's complement. show all the steps and calculations. Please also show steps to verify that the answer is correct. -7493 and -6372
Compute the following operations using 8-bits 2’s complement encoded numbers: a. 127-47 b. 47-56 c. 19-120
Compute the following operations using 8-bits 2’s complement encoded numbers: a. 127-47 b. 47-56 c. 19-120
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT