We want a signed ternary representation, so we use the three’s complement representation, which is analogous to two’s complement. What is the 27-trit word representation for +34 and for -34 using three’s complement representation.
please show steps, thank you
Here, first we will convert the decimal value into a balaced ternary value. For this we can use long division method and then we will arrange the remainders in the reverse order.
Thus we get (34)10 = (1021)3
Now we write the 2's complement of (1021)3 by subtracting 2 from each digit.
2's complement of 34= 01201
To get 3's complement we add 1 to 3's complement
3's complement 34= 01202
-34 can be represented similarly by making the MSB in the above representation to 1 (ie. if MSB = 1 number is negative and if MSB = 0 the number is positive)
3's complement of -34 = 11202
We want a signed ternary representation, so we use the three’s complement representation, which is analogous...
Assume that 151 and 214 are signed 8-bit decimal integers stored in two’s complement format. Calculate 151 + 214 by adding the two’s complement numbers first and then writing the final result in decimal. Then explain why the final result is very different from 366 (151+214=366). Note that if a number requires more than 8 bits, you need to represent first the number correctly using as many bits as necessary, then keep only the 8 bits, and use the resulting...
1. (10 points) We want to compare the numbers 3 and -6. Using 4-bit signed 2's complement numbers, show how we can use the process of binary addition to calculate a result that will tell us how these two numbers compare. (Just show the calculation here. The next part will be the interpretation of the result.) Now briefly explain how this result can be interpreted by a hardware circuit to indicate how the two numbers compare. (You don't need to...
Use the two’s-complement principles of addition to perform the operation A9047CF2 minus 47EE5D61. (i.e., convert those two hex numbers to binary, at which point they will represent two’s-complement binary numbers. Now subtract one from the other, using the magical properties of two’s-complement that allow you to perform that subtraction without having to use the subtract-and-borrow algorithm.) What do you get? Express your two’s-complement binary answer as a hexadecimal number, like the two above.
(3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a. What is the range of the expressible numbers? b. What is the precision? c. What is the error? ______________________________________________________________________________ (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below (Note: the space in the binary string is purely for visual convenience) Show your work. Using...
The representation of a p(t) signal in the frequency spectrum that we want to exemplify is P(f) and is shown as follows. ei P(f) = (N) S1 f 1 - 530 515KHz S/ f 15 545KHz 10 otherwise We want to record this signal by passing it through an analog to digital converter (ADC) with sampling rate of 100 KHz. Will there be an overlap? Why is that? If there is an overlap, what should be the minimum sampling rate...
We are running programs on a machine where values of type int have a 32-bit two’s-complement representation. Values of type float use the 32-bit IEEE format, and values of type double use the 64-bit IEEE format. We generate arbitrary integer values x, y, and z, and convert them to values of type double as follows: /* Create some arbitrary values */ int x = random(); int y = random(); int z = random(); /* Convert to double */ double dx...
1. If we had two 4-bit signed 2's complement numbers, X--4 and Y-6 and we wanted to compare them, we might calculate X-Y (a) Show that calculation (b) Explain how the result tells us that Y>IX (c) Now show the calculation for Y. X (d) Explain how this also shows us that Y>X 2. We talked about an ALU that takes two 4-bit inputs, A and B, and then generates a 4-bit result, S, based on a 2-bit command, F1FO....
6. We want to use the Integral Test to show that the positive series a converges. All of the following need to be done except one. Which is the one we don't need to do? (a) Find a function f(x) defined on [1,00) such that f(x) > 0, f(x) is decreasing, and f(n) = a, for all n. (b) Show that ſ f(z) dr converges. (e) Show that lim Ss6 f(x) dx exists. (d) Show that lim sexists. 7. Suppose...
**Please Do Not Forget The Visual Representation. Thank You!!** Problem Statement A 5.0-uC point charge is placed at the 0.00 cm mark of a meter stick and a -4.0-uC point charge is placed at the 50 cm mark. At what point on a line joining the two charges is the electric field due to these charges equal to zero? Visual Representation • Draw a sketch of the charge distribution. Establish a coordinate system and show the locations of the charges....
You want to sort (in increasing order) the following array of integers using quicksort as we have described it and used it in class. You are asked to specifically show your steps and the resulting array after one pass of quicksort. Show and explain each of your steps. Note 1: in case you are not using the algorithm presented and traced in class, you are expected to show all your steps accompanied with algorithm instructions and variables' values. Note 2:...