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
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
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. 65
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
- True/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_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_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
- 3. 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_forwardThe 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_forwardhelp with cs hwarrow_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
- Assume that the following 10-bit numbers represent signed integers using sign/ magnitude notation. The sign is the leftmost bit and the remaining 9 bits represent the magnitude. What is the decimal value of each a. 1000110001 b. 0110011000 c. 1000000001 d. 1000000000arrow_forwardPlease zoom into the image if it is difficult to seearrow_forwardWhat is the largest number that can be represented with: 5-bits, 10-bits, 22-bits? Please, show all the necessary step.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