subject

4. (??, 22 pts) We saw in lecture methods to store integers (both negative and non-negative) and real numbers as sequences of 0s and 1s. Integers can be stored exactly (using binary numbers and/or 2’s complement), but real numbers must be approximated by rational numbers. In decimal (base 10), a rational number can be expanded as, for example, 11 8 = 1.375. That is, 11 8 = 1 × 100 + 3 × 10−1 + 7 × 10−2 + 5 × 10−3 . In a similar fashion, we can expand a rational number in binary, 11 8 = · · · # × 2 0 + # × 2 −1 + # × 2 −2 + # × 2 −3 + · · · = 1 × 2 0 + 0 × 2 −1 + 1 × 2 −2 + 1 × 2 −3 . Thus, we can write 11/8 as 1.011 in binary; thereby converting it to a sequence of 0s and 1s (and a decimal—binary?—point). (a) Is 0.1 the binary expansion of 1/2? Explain why or why not. (b) Determine the binary expansion of 45/16. Remember that a rational number is a number that can be written as a ratio of integers, such as 1/2, 3/4, and 5/1.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
What is the largest decimal number that can be represented by a binary number with 4 place values? (remember, each place in a binary number has a value of a power of 2, starting in the ones place with 20.)
Answers: 3
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
You know the right answer?
4. (??, 22 pts) We saw in lecture methods to store integers (both negative and non-negative) and rea...
Questions
question
Spanish, 22.05.2021 17:30
question
Business, 22.05.2021 17:30
question
Mathematics, 22.05.2021 17:30
question
Mathematics, 22.05.2021 17:30
question
Computers and Technology, 22.05.2021 17:30
question
Mathematics, 22.05.2021 17:30
question
Computers and Technology, 22.05.2021 17:40
question
History, 22.05.2021 17:40
Questions on the website: 13722367