Java: An Introduction to Problem Solving and Programming (7th Edition)
7th Edition
ISBN: 9780133766264
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
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
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?
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.
Chapter 1 Solutions
Java: An Introduction to Problem Solving and Programming (7th 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 - Prob. 34STQCh. 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 - Prob. 18ECh. 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 - Write an applet program for the problem described...Ch. 1 - Prob. 6PP
Knowledge Booster
Similar questions
- This 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_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_forward3. What decimal value does the 8-bit binary number 01101110 have if:a. It is interpreted as an unsigned numberb. It is on a computer using two’s complement representation PS: Please do them in a word processor and not hand-written!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_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_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_forward
- 7. Given the following binary number: 1101.0111, what will be its decimal number equivalent?arrow_forwardConvert the following numbers from their given base to decimal:a. 0.10010012b. 0.3A216c. 0.2A1122. What is the decimal value of the following binary numbers?a. 1100101.1b. 1110010.11c. 11100101.13. a. What is the ASCII representation of the numeral -3.1415 in binary?b. What is the ASCII representation of the numeral -3.1415 in octal?c. What is the ASCII representation of the numeral -3.1415 in hexadecimal?d. What is the ASCII representation of the numeral -3.1415 in decimal?4. What character string does the binary ASCII code1010100 1101000 1101001 1110011 0100000 1101001 11100110100000 1000101 1000001 1010011 1011001 0100001arrow_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_forward
- What is the largest number that can be represented with: 5-bits, 10-bits, 22-bits? Please, show all the necessary step.arrow_forwardHW1:/ convertthe following decimal number to binary number: (879)D HW2:/ convertthe following decimal number to octal number: (675)D HW3:/ convert the following decimal number to hexadecimal: (340)D HW4:/ convert the following binary number to decimal: (11010110)B HW5:/ convertthe following octal number binary: (110001111010110)B HW6:/ convertthe following binary number to Hexadecimal: (11001010010101011110)B HW7:/ convertthe following octal numberto hexadecimal: (2764)o HW8:/ convertthe following hexadecimal numberto octal: (DFE5)Harrow_forwardIn computers, the decimal numbers (-90.+90) are represented using 8 bits as (1101 0000, 1001 0000) B (0101 1010, 1010 0110) (1010 0101, 0101 1010) (1010 0110, 0101 1010)arrow_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