An alternative to hexadecimal notation for representing bit patterns is dotted decimal notation in which each byte in the pattern is represented by its base ten equivalent. In turn, these byte representations are separated by periods. For example, 12.5 represents the pattern 0000110000000101 (the byte 00001100 is represented by 12, and 00000101 is represented by 5), and the pattern 100010000001000000000111 is represented by 136.16.7. Represent each of the following bit patterns in dotted decimal notation.
- a. 0000111100001111
- b. 001100110000000010000000
- c. 0000101010100000
Learn your wayIncludes step-by-step video
Chapter 1 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
C How to Program (8th Edition)
Computer Systems: A Programmer's Perspective (3rd Edition)
Java: An Introduction to Problem Solving and Programming (7th Edition)
Starting Out With Visual Basic (7th Edition)
Starting Out with C++: Early Objects (9th Edition)
Starting Out with C++ from Control Structures to Objects (9th Edition)
- To represent real binary numbers in floating point notation, we use a 14-bit format with 1 bit for the sign, 5 bits for the exponent, and 8 bits for the significand. Assuming an excess-16 exponent bias, and no implied 1 bit to the left of the radix point, the negative binary (real) number -0.0000100101 is represented as O 11010010010100 O 11110010010100 O 10110010010100 O 00110010010100arrow_forwardConsider the half-precision floating-point format, which has five bits for the exponent and ten bits for the significand. Find the decimal (i.e., base 10) number represented by the following bits in the half-precision floating- point format: (a) 0100110001110000. (b) 1000001111 1111. (c) 0111110000000000.arrow_forwardOne's complement representations of integers is used to simplify computer arithmetic, while representing both positive and negative values in bits (base 2). A n-bit number represents positive and negative integers with absolute value less than 2"-1, The leftmost bit is used to represent the sign. A 0 bit in this position is used for positive integers, and a 1 bit in this position is used for negative integers. When a value is negative, the magnitude of the value is represented by the rest of the bits, but the l's and O's flipped. For example: The number –5 expressed in 4-bit 1s-complement is 1010: the first bit indicates it's a negative number. The last 3 bits, when flipped to 101, is the base-2 representation of 510. (a) Find the one's complement representations, using bit strings of length six, of the following integers. i. 19 i. ii. 75 ii. iii. -72 ii. iv. -1 iv. (b) What integer does each of the following one's complement representations of length five represent? i. 111000 ii.…arrow_forward
- One's complement representations of integers is used to simplify computer arithmetic, while representing both positive and negative values in bits (base 2). A n-bit number represents positive and negative integers with absolute value less than 2"-1, The leftmost bit is used to represent the sign. A 0 bit in this position is used for positive integers, and a 1 bit in this position is used for negative integers. When a value is negative, the magnitude of the value is represented by the rest of the bits, but the l's and O's flipped. For example: The number –5 expressed in 4-bit 1s-complement is 1010: the first bit indicates it's a negative number. The last 3 bits, when flipped to 101, is the base-2 representation of 510. (a) Find the one's complement representations, using bit strings of length six, of the following integers. i. 19 i. ii. 75 ii. iii. -72 ii. iv. -1 iv. (b) What integer does each of the following one's complement representations of length five represent? i. 111000 i. ii.…arrow_forwardA number x in 64-bits is presented in double precision floating point form as follows. 1 10000001000 0011100001100000000000000000000000000000000000000000 Find the value of x in decimal representation.arrow_forwardTrue/False The number 0.5 in decimal notation, when expressed in the IEEE 754 single-precision binary format studied in class, would be expressed as follows: Sign bit = 0 Exponent = 0111 1110 (+126 in decimal) Mantissa = 000 0000 0000 0000 0000 0000arrow_forward
- A barcode scanner for Universal Product Codes (UPCs) verifies the 12-digit code scanned by comparing the code's largest digit (called a check digit) to its own computation of the check digit from the first 11 digits as follows: 1. Calculate the sum of the digits in the odd-numbered positions (the first, third,..... eleventh digits) and multiply this sum by 3. 2. Calculate the sum of the digits in the even-numbered position (the second, fourth....tenth digits) and add this to the previous result. 3. If the last digit of the result from step 2 is 0, then 0 is the check digit. Otherwise, subtract the last digit from 10 to calculate the check digit. 4. If the check digit matches the final digit of the 12-digit UPC, the UPC is assumed correct By using C++ write a program that prompts the user to enter the 12 digits of a barcode separated by space. The program should store the digits in an integer array, calculate the check digit, and compare it to the final barcode digit. If the digits…arrow_forwardSuppose we need to write the decimal number 55.3125 in IEEE floating point representation. What is the value of the EXPONENT? 10001000 10000010 1000100 0100010arrow_forwardFloating point numbers are numbers that support decimal points Express the following numbers in hexadecimal IEEE 32-bit floating-point format 320 -62arrow_forward
- A computer stores real numbers in the floating-point format in 8-bit words. The first bit is used for the sign of the number, the second bit for the sign of the exponent, the next two bits for the magnitude of the exponent, and the next four bits for the magnitude of the mantissa. Represent 5.627 in the 8-bit format.arrow_forward4. The bfloat16 "brain floating point" format is a 16 bit format used in Google's machine learning and AI software. It is a binary floating point format which is very similar to the single precision IEEE-754 format: 1 bit is allocated for the sign, 8 bits for the exponent with a bias of 127, but only 7 bits are allocated for the fraction (the exponent is always chosen so that the first digit of the mantissa is 1, and then only the fraction is stored in memory). (a) What is the approximate decimal precision of a brain floating point? (b) If the bits are stored in the order: sign, exponent, fraction, and 0 corresponds to a positive sign, then calculate the decimal representation of the number stored as 1 00000110 0100010 (c) Given that the largest exponent actually used for numbers is 11111110, what is the largest number that can be expressed as a bfloat 16? (d) Supposing that numbers are truncated (rounded down), what is the maximum absolute rounding error in bfloat16?arrow_forwardQuestion 11 Not yet answered P Flag question A computer system uses 8 bits to represent floating-point values. The 8 bits are organised as follows: The first bit is a sign bit (0 for positive, 1 for negative). The middle 3 bits are the exponent, which uses bias of 3. The last 4 bits are the significand, which is normalised in the same way as the significand is normalised in IEEE-754 formats. The format does not reserve any special values. The following arithmetic operation is performed on this system: 00011000 x 11000110 The result is then stored in the same 8-bit floating-point format. What is the relative error of the stored result comapred to the value of the result of the arithmetic operation? Answer s are rounded to 5 decimal places. O a. None of the other answers. O b. 0.03030% O c. 0.03125% O d. 0.97865% O e. 0%arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education