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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:30, 341404143
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
image
Computers and Technology, 22.06.2019 19:10, kaiya789
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
image
Computers and Technology, 23.06.2019 05:00, sharkboy578
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
image
Computers and Technology, 23.06.2019 11:00, swelch2010
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
You know the right answer?
4. (??, 22 pts) We saw in lecture methods to store integers (both negative and non-negative) and rea...

Questions in other subjects:

Konu
Chemistry, 05.01.2021 02:10
Konu
Mathematics, 05.01.2021 02:10