Exercises

  1. D.20 Some people argue that many of our calculations would be easier in the base 12 than in the base 10 (decimal) number system because 12 is divisible by so many more numbers than 10. What’s the lowest digit in base 12? What would be the highest symbol for the digit in base 12? What are the positional values of the rightmost four positions of any number in the base 12 number system?

  2. D.21 Complete the following chart of positional values for the rightmost four positions in each of the indicated number systems:

    decimal 1000 100 10    1
    base 6 ... ...    6 ...
    base 13 ... 169 ... ...
    base 3  27 ... ... ...
  3. D.22 Convert binary 100101111010 to octal and to hexadecimal.

  4. D.23 Convert hexadecimal 3A7D to binary.

Get C++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.