Question

In: Computer Science

Show ALL work if it is required for the question and BASES 1. What is the...

Show ALL work if it is required for the question and BASES

1. What is the Binary representation of this Decimal? (signed) 115

2. What is the Hexadecimal representation of this Decimal? (signed) 220

3. Convert the following from Signed Decimal to Hexadecimal: (signed) -24

Solutions

Expert Solution

1)
115
Since this is a positive number. we can directly convert this into binary
Divide 115 successively by 2 until the quotient is 0
   > 115/2 = 57, remainder is 1
   > 57/2 = 28, remainder is 1
   > 28/2 = 14, remainder is 0
   > 14/2 = 7, remainder is 0
   > 7/2 = 3, remainder is 1
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1110011
So, 115 of decimal is 1110011 in binary
so, 115 in 2's complement binary is 01110011
Answer: 01110011

2)
Divide 220 successively by 16 until the quotient is 0
220/16 = 13, remainder is 12
13/16 = 0, remainder is 13
Read remainders from the bottom to top as DC
Answer: 0xDC

3)
-24
This is negative. so, follow these steps to convert this into a 2's complement binary
Step 1:
Divide 24 successively by 2 until the quotient is 0
   > 24/2 = 12, remainder is 0
   > 12/2 = 6, remainder is 0
   > 6/2 = 3, remainder is 0
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 11000
So, 24 of decimal is 11000 in binary
So, 24 in normal binary is 00011000
Step 2: flip all the bits. Flip all 0's to 1 and all 1's to 0.
   00011000 is flipped to 11100111
Step 3:. Add 1 to above result
11100111 + 1 = 11101000
so, -24 in 2's complement binary is 11101000

Now convert 11101000 to hexadecimal
Converting 11101000 to hexadecimal
1110 => E
1000 => 8
So, in hexadecimal 11101000 is 0xE8
Answer: 0xE8



Related Solutions

Show ALL work if it is required for the question and BASES 4. Convert the following...
Show ALL work if it is required for the question and BASES 4. Convert the following from Signed Binary to Decimal: (signed) a. 10011010 b. 01001101 5. 10000001 - 01100110 6. 80D3 + 74C2
Show ALL work if it is required for the question and BASES 7. Name 3 components...
Show ALL work if it is required for the question and BASES 7. Name 3 components of the CPU and the Buses. Describe what they do. 8. Name 4 essential status flags and describe what they do. 9. Translate this Expression to Assembly: EAX = -val2 + 7 - val3 + val1
Please answer all parts of the question. Please show all work and all steps. 1a.) Show...
Please answer all parts of the question. Please show all work and all steps. 1a.) Show that the solutions of x' = arc tan (x) + t cannot have maxima 1b.) Find the value of a such that the existence and uniqueness theorem applies to the ivp x' = (3/2)((|x|)^(1/3)), x(0) = a. 1c.) Find the limits, as t approaches both positive infinity and negative infinity, of the solution Φ(t) of the ivp x' = (x+2)(1-x^4), x(0) = 0
Please show all the work Question 1 A manufacturer produces umbrellas with the following parameters: The...
Please show all the work Question 1 A manufacturer produces umbrellas with the following parameters: The monthly demand for umbrellas is 3000 Daily usage is 100 (assume 1 month = 30 days and demand is uniform throughout the month) The production rate is 400 per day Setup cost is $200 for a run Holding cost is $1 per umbrella per month What is the economic production quantity? Question 2 Suppose a gas station has expected sales of 6000 gallons during...
Please make sure to complete all parts of the question and to show all work used...
Please make sure to complete all parts of the question and to show all work used to compute the answer so I can see how the answer was found. A five-year annuity of 10 $5,230 semiannual payments will begin nine years from now, with the first payment coming nine and a half years from now. If the discount rate is 10 percent compounded monthly, what is the value of this annuity five years from now? What is the value three...
Show all of your work in the space provided. Show all of your work to get...
Show all of your work in the space provided. Show all of your work to get full credit. All answers have to be in SI units(20 pints for each questions). 2.Following are the two sets of position and time data collected using a motion sensor and cart.        Table 1. table 2 Time (s) Position (m) V(instantaneous) (m/s) 0 10.0 0.25 13.0 0.50 16.5 0.75 21.0 1.00 26.5 1.25 32.3 1.50 38.0 1.75 44.5 2.00 52.0 2.25 60.0 2.50 68.5...
Please solve all parts of the following question. Please show all work and all steps. 1a.)...
Please solve all parts of the following question. Please show all work and all steps. 1a.) Solve x' = x + 3y + 2t y' = x - y + t^2 1b.) Solve x' + ty = -1 y' + x' = 2 1c.) Solve x' + y = 3t y' - tx' = 0
NEED TO SHOW ALL WORK IN EXCEL 1. What is the annual interest rate, if $10,000...
NEED TO SHOW ALL WORK IN EXCEL 1. What is the annual interest rate, if $10,000 grows to $12,166 over 5 years? (3) 2. Payments of $500 each are received every six months ($1,000 per year) for 5 years. The nominal annual interest rate is 5%. Using semi-annual compounding, what is the present value today? What is the present value of the payments today? (3) 3. What monthly annuitiy investment (deposit per month) is required to achieve $20,000 in 4...
Show all work** Label answers ** * TI Graphing Calculators required ** Round probabilities to 3...
Show all work** Label answers ** * TI Graphing Calculators required ** Round probabilities to 3 decimal places * 1. According to a Kellogg Company, 34.2% of Americans eat breakfast every day. Calculate the binomial probabilities from randomly selected people in the U.S. a. P(Less than 11 Americans out of 25 eat breakfast daily) = b. P(More than 13 Americans out of 40 eat breakfast daily) = c. P(At least 1 out of 5 Americans eat breakfast daily) = d....
You are required to show all work, which will include completing the following steps: Determine your...
You are required to show all work, which will include completing the following steps: Determine your null and alternative hypotheses (see Slide 11) Set up a table (see Slide 10)Compute the estimated variance of the difference scores (see Slide 14) Compute the standard error of the mean difference (see Slide 15) Compute the t obtained (see Slide 16) Identify the t critical using the charts provided in class (see Slide 17) Compare the t obtained to the t critical to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT