Prelude to Programming
6th Edition
ISBN: 9780133750423
Author: VENIT, Stewart
Publisher: Pearson Education
expand_more
expand_more
format_list_bulleted
Question
Chapter 2, Problem 19RE
Program Plan Intro
To find the type of integer representation which would have a range of 0-255.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
3. What percent error we would have in representing the value
= 0.345678 in a computer where we can use s0, sl the signs,
d1=2 digits, d2=2 digits, do=2 digits in representation
sod1,d2x10de
Any floating-point representation used in a computer can represent only certain real
numbers exactly; all others must be approximated. If A' is the stored value approxi-
mating the real value A, then the relative error, r, is expressed as
A - A'
A
r =
Represent the decimal quantity +0.4 in the following floating-point format: base
exponent: biased, 4 bits; significand, 7 bits. What is the relative error?
=
2;
Declare a 32-bit signed integer variable and initialize it with the smallest possiblenegative decimal value.
Chapter 2 Solutions
Prelude to Programming
Ch. 2 - Given the number 108, ____________ is the base.Ch. 2 - Given the number 75, _____________ is the...Ch. 2 - When a base is raised to a power of ________, the...Ch. 2 - Prob. 4RECh. 2 - Prob. 5RECh. 2 - Prob. 6RECh. 2 - A floating point number has a(n) ______ part and...Ch. 2 - Prob. 8RECh. 2 - To convert the number 8.396052106 to regular...Ch. 2 - Using exponents, the number 1/1000 is ___________.
Ch. 2 - Prob. 11RECh. 2 - What is the decimal value of the 2 in the...Ch. 2 - Prob. 13RECh. 2 - Prob. 14RECh. 2 - Which of the following is not an integer? a. 5 b....Ch. 2 - Prob. 16RECh. 2 - Prob. 17RECh. 2 - Prob. 18RECh. 2 - Prob. 19RECh. 2 - Prob. 20RECh. 2 - Prob. 21RECh. 2 - To make it easier for a human to read a binary...Ch. 2 - Prob. 23RECh. 2 - Prob. 24RECh. 2 - Prob. 25RECh. 2 - Prob. 26RECh. 2 - The smallest unsigned integer that can be...Ch. 2 - A number system that uses 7 as a base would be...Ch. 2 - Prob. 29RECh. 2 - Prob. 30RECh. 2 - Prob. 31RECh. 2 - Prob. 32RECh. 2 - Prob. 33RECh. 2 - Prob. 34RECh. 2 - Prob. 35RECh. 2 - Prob. 36RECh. 2 - Prob. 37RECh. 2 - Prob. 38RECh. 2 - Prob. 39RECh. 2 - Prob. 40RECh. 2 - Prob. 41RECh. 2 - Prob. 42RECh. 2 - Prob. 43RECh. 2 - Prob. 44RECh. 2 - Prob. 45RECh. 2 - Prob. 46RECh. 2 - Prob. 47RECh. 2 - Prob. 48RECh. 2 - Prob. 49RECh. 2 - Prob. 50RECh. 2 - Prob. 51RECh. 2 - Prob. 52RECh. 2 - Prob. 53RECh. 2 - Prob. 54RECh. 2 - Prob. 55RECh. 2 - Prob. 56RECh. 2 - Prob. 57RECh. 2 - Prob. 58RECh. 2 - Prob. 1PCCh. 2 - Prob. 2PCCh. 2 - Prob. 3PCCh. 2 - Prob. 4PCCh. 2 - Prob. 5PC
Knowledge Booster
Similar questions
- 4- Which of the following values is the decimal representation of the hexadecimal number 4D? a. 01001101 b. 77 c. 178 d. 4D e. B2 f. 10110010arrow_forward6-In the representation Complement to 1, we the number when Code the absolute value thus is negative: A = True B- False 7- The result in base 10' A - 44.25 B-42015 C- 51. 13 45. 75 8- The result AT 40. B + 61 q of the transformation (101001.10) 2 usi o the transformation (52) a in bose 10 is: C² 42 D-41 WWW 30 Oarrow_forwardDroids on the planet Tatooine perform calculations in base-6. What is the largest base-6 number that can be represented with three distinct digits? (Each digit in your base-6 number must be different.) Convert your answer to decimal (base-10).arrow_forward
- 1. For given number, give normal form, precision, and magnitude: 0503.070a. Normalized:b. Precision:c. Magnitude:d. Stored with precision 5:e. Absolute error with precision 5:f. Relative error with precision 5:arrow_forwardIn case of ordinary int variables A. leftmost bit is reserved for sign B. rightmost bit is reserved for sign C. no bit is reserved for sign D. none of thesearrow_forwardIn a given 32-bit floating-point representation of numbers, if the number of bits of the mantissa is reduced to accommodate an increase in the number of bits of the exponent, this will result in the following: (select the best answer) Increased range of the numbers at the expense of the precision Increased precision of the numbers at the expense of the range Both range and precision increase Both range and precision decreasearrow_forward
- 2. For the following signed 2's compliment values Perform actions (indicate overflow): A+B= Signed 2's Compliment numbers arithmetic A - B = A = 0xFF B = 0x00arrow_forwardThere are 2 numbers, X and Y in single-precision floating point representations. X=45B20000 and Y=B66C0000. Perform the multiplication operation on the two numbers using the floating-point number multiplication algorithm (the result is still in the floating-point format). Then convert each of them: X, Y and the results to a decimal number (fixed point).arrow_forwardWhat are the mantissa and exponent values if 6.75 is represented in 8-bit binary floating-point representation? a) Mantissa is 1011 and exponent is 101 b) Mantissa is 0011 and exponent is 100 c) Mantissa is 1011 and exponent is 100 d) Mantissa is 0011 and exponent is 101arrow_forward
- True/False 1. The octal number system is a weighted system with eight digits.2. The binary number system is a weighted system with two digits.3. MSB stands for most significant bit.4. In hexadecimal, 9 + 1 = 10.5. The 1’s complement of the binary number 1010 is 0101.6. The 2’s complement of the binary number 1111 is 0000.7. The right-most bit in a signed binary number is the sign bit.8. The hexadecimal number system has 16 characters, six of which are alphabetic characters.9. BCD stands for binary coded decimal.10. An error in a given code can be detected by verifying the parity bit.11. CRC stands for cyclic redundancy check.12. The modulo-2 sum of 11 and 10 is 100.arrow_forward2. For given number, give normal form, precision, and magnitude: -0.0102309 a. Normalized: b. Precision: c. Magnitude: d. Stored with precision 4: e. Absolute error with precision 4: f. Relative error with precision 4:arrow_forwardSelect the correct answer that corresponds to the decimal value of the following number in fixed-point representation: 111.0001 Select one: O a. 7.625 O b. 7.0625 O c. 6.0625 d. 7.00625 O e. 7.25arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- 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
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education