Java: An Introduction to Problem Solving and Programming (8th Edition)
8th Edition
ISBN: 9780134462035
Author: Walter Savitch
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 1, Problem 11E
Program Plan Intro
a)
Determining the values represented by bits:
Single bits can represent two values 0 and 1. Two digits can represent 4 values and three digits can represent 8 values. These values could be determined by the formula
Explanation of Solution
b)
Determining the values represented by 16 bits:
Formula to find the values of “n” bits:
Number of bits: 16
Values represented
Explanation of Solution
c)
Determining the values represented by 32 bits:
Formula to find the values of “n” bits:
Number of bits: 32
Values represented by 32 bits:
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Bit strings consist of 0 and 1. How many bit strings of length 7 either start with “1” or end with the 3 bits “000”?
A.80
B.72
C.64
D.16
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.
What 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 101
Chapter 1 Solutions
Java: An Introduction to Problem Solving and Programming (8th Edition)
Ch. 1.1 - What are the two kinds of memory in a computer?Ch. 1.1 - What is software?Ch. 1.1 - What data would you give to a program that...Ch. 1.1 - What data would you give to a program that...Ch. 1.1 - What is the difference between a program written...Ch. 1.1 - Is Java a high-level language or a low-level...Ch. 1.1 - Is Java bytecode a high-level language or a...Ch. 1.1 - What is a compiler?Ch. 1.1 - What is a source program?Ch. 1.1 - What do you call a program that translates Java...
Ch. 1.2 - What would the following statement, when used in a...Ch. 1.2 - Write a statement or statements that can be used...Ch. 1.2 - Prob. 13STQCh. 1.2 - What is the meaning of the following line in the...Ch. 1.2 - Write a complete Java program that uses system....Ch. 1.2 - Suppose you define a class named YourClass in a...Ch. 1.2 - Prob. 17STQCh. 1.3 - What is a method?Ch. 1.3 - Prob. 19STQCh. 1.3 - Do all objects of the same class have the same...Ch. 1.3 - Prob. 21STQCh. 1.3 - Prob. 22STQCh. 1.3 - Prob. 23STQCh. 1.3 - Prob. 24STQCh. 1.3 - What is an algorithm?Ch. 1.3 - What is pseudocode?Ch. 1.3 - Prob. 27STQCh. 1.3 - Prob. 28STQCh. 1.3 - Prob. 29STQCh. 1.3 - Prob. 30STQCh. 1.3 - Prob. 31STQCh. 1.3 - Suppose you write a program that is supposed to...Ch. 1.4 - Prob. 33STQCh. 1.4 - How would you change the program in Listing 1.2 so...Ch. 1 - How does a computers main memory differ from its...Ch. 1 - Prob. 2ECh. 1 - Prob. 3ECh. 1 - How does machine language differ from Java?Ch. 1 - What would the following statements, when used in...Ch. 1 - Write a statement or statements that can be used...Ch. 1 - Write statements that can be used in a Java...Ch. 1 - Given a persons year of birth, the Birthday Wizard...Ch. 1 - Write statements that can be used in a Java...Ch. 1 - Prob. 11ECh. 1 - Prob. 12ECh. 1 - Prob. 13ECh. 1 - Prob. 14ECh. 1 - What attributes and behaviors would an object...Ch. 1 - Suppose that you have a numberxthat is greater...Ch. 1 - Prob. 17ECh. 1 - Write statements that can be used in a JavaFX...Ch. 1 - Prob. 19ECh. 1 - Prob. 20ECh. 1 - Obtain a copy of the Java program shown in Listing...Ch. 1 - Modify the Java program described in Practice...Ch. 1 - Prob. 3PCh. 1 - The following program will compile but it has...Ch. 1 - Programming Projects require more problem-solving...Ch. 1 - Write a complete program for the problem described...Ch. 1 - Prob. 3PPCh. 1 - Prob. 4PPCh. 1 - Prob. 5PPCh. 1 - Prob. 6PP
Knowledge Booster
Similar questions
- A computer "nibble" consists of four "bits," each bit being either a 0 or a 1. If characters are represented using a code that uses a nibble for each character, how many different characters can be represented?arrow_forwardTrue/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_forwardA computer byte consists of eight bits, each bit being either a 0 or a 1. Assume that characters are represented using a code that uses a byte for each character. Some written languages, such as Chinese and Japanese, use tens of thousands of different characters. If a language uses roughly 78,000 characters, a computer code for this language would have to use how many bytes per character? x bytes Need Help? Read It Submit Answer 11:35 AM 46°F Mostly cloudy a @ 11/20/2021 hp inort sc pg u delete home end num backspace lock } P home 4 enter pause ↑ shift 1 end ctriarrow_forward
- 6-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_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_forwardHow is the decimal number 82.2801 represented using the decimal floating-point notation described in the text? A. 822801 * 104 B. 822801 * 10-4 C. 8.22801 * 10 D. 8.22801 * 10-1 E. both B and Carrow_forward
- How many things can be represented with the following number of bits? A. four bits B. five bits C. six bits D. seven bitsarrow_forwardComputer Science . What percent error we would have in representing the value = 0.345678 in a computer where we can use s0, s1 the signs, d1=2 digits, d2=2 digits, do=2 digits in representation sod1,d2x10sod0arrow_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
- The value 9007199254740992 Byte is equal to: O a. 8 quadrillion Byte O b.1 sextillion Bytel c. 6 quntillion Byte O d. 5 septillion Bytearrow_forwardThis binary number is represented using 32-bit single precision floating point representation. What is the equivalent of the 8-bit exponent in decimal? (not the actual value in excess 127 notation) a. 0 b. 3 c. 9 d. 15 e. 31 f. 65arrow_forwardWhat is the highest decimal number that can be represented by each of the following numbersof binary digits (bits)?(a) two (b) three (c) four (d) five (e) six(f) seven (g) eight (h) nine (i) ten (j) elevenarrow_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