COMPUTER SCIENCE ILLUMIN.-TEXT
COMPUTER SCIENCE ILLUMIN.-TEXT
7th Edition
ISBN: 9781284156010
Author: Dale
Publisher: Jones & Barlett
Question
Book Icon
Chapter 2, Problem 40E
Program Plan Intro

Hexadecimal subtraction:

The rules for subtracting two hexadecimal numbers are given below:

  • Read both the numbers to find the number of bits.
  • If the number of bits in the first number is less than that of second number, then pad the required zeroes to the left side.
  • Numbers are represented in bytes (1 byte = 8 bits).
  • Align the number in correct order after padding. The hexadecimal number that is followed by a minus sign should be subtracted from the other hexadecimal number.

Explanation of Solution

b.

“9988 – AB”:

  • Start with the numbers from right to left.
    • Subtract “B” from “8”. The equivalent hexadecimal value for “B” is “11”.
      • Here, “8” is less than “11”. Borrow “16” from adjacent left side and add it to “8”. Since the adjacent left side number is “8”, it becomes “7” after borrowing.
      • Add “16” to “8” and then subtract “11” which give “13” as the result. The equivalent hexadecimal digit for the number “13” is “D”. Hence write D to the result.
    • Subtract A from “7”. The equivalent hexadecimal value for “A” is “10”.
      • Here “7” is less than “10”...

Explanation of Solution

c.

“A9F8 – 1492”:

  • Start with the numbers from right to left.
    • Subtract “8” from “2”. The equivalent hexadecimal digit for number “6” is “6”. Write “6” to the result.
    • Subtract “9” from “F”. The equivalent hexadecimal value for “F” is “15”.
      • Subtract “15” – “9” which gives “6”. The equivalent hexadecimal digit for the number “6” is “6”. Hence write “6” to the result.
    • Subtract “4” from “9”. The equivalent hexadecimal value for number “5” is “5”...

Blurred answer
Students have asked these similar questions
(More in the next set.) (a) Verify that the given functions are linearly independent and form a basis of solutions of the given ODE. (b) Solve the IVP. Graph or sketch the solution. 15. 4y" + 25y = 0, y(0) = 3.0, y'(0) = -2.5, cos 2.5.x, sin 2.5x
all questions Q.1/ Find the overall transfer function, T(s) = C(s)/R(s), for the following block diagram system shown in Figure 1. R(s) + 50 + C(s) S s+1 2 279 2 Figure 1
Figure 1 Q.2/ Find the transfer function, G(s) = Vo(s)/Vi(s), for the network shown in Figure 2. ΙΩ 1 H 0000 + vi(t) + 19 (b) Figure 2 1F vo(t)
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education