Can you please help me solve these questions Question 2 a. You have built a computer that uses 9 bits to represent unsigned integers. You decide to use it to perform the following calculation: 320 + 394. What is the result? (Give your answers both in binary and in decimal) b. The computer you built also has a 16-bit addressability. You decide to add some memory to it and now your computer has a total of 30,000 bytes of memory. What is the minimum number of bits that you need in order to represent your address space?  c. Consider the circuit that adds together two 16-bit 2's complement numbers (consisting of a half-adder and a bunch of full-adders chained together). Is this an example of combinatorial logic or sequential logic? Why?   d. What is the largest decimal number that you can represent with a 3-digit octal number? (give your answer both in decimal and in binary).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Can you please help me solve these questions

Question 2

a. You have built a computer that uses 9 bits to represent unsigned integers. You decide to use it to perform the following calculation: 320 + 394. What is the result? (Give your answers both in binary and in decimal)

b. The computer you built also has a 16-bit addressability. You decide to add some memory to it and now your computer has a total of 30,000 bytes of memory. What is the minimum number of bits that you need in order to represent your address space? 

c. Consider the circuit that adds together two 16-bit 2's complement numbers (consisting of a half-adder and a bunch of full-adders chained together). Is this an example of combinatorial logic or sequential logic? Why?
 
d. What is the largest decimal number that you can represent with a 3-digit octal number? (give your answer both in decimal and in binary).
 
e. Represent the difference of 0o611 and 0o365 in octal.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Expert Solution
Step 1: Answer(a)

You have a computer that uses 9 bits to represent unsigned integers. To add 320 and 394, you can perform the addition in binary:

 Conversion to Binary:
   - First, we convert the decimal numbers 320 and 394 into their binary representations.
   - 320 in binary is 010000000, which is a 9-bit binary number. We used a leading zero to fill up the 9 bits since we're working with 9-bit unsigned integers.
   - 394 in binary is 110001010, also represented as a 9-bit binary number.

 Binary Addition:
   - To perform the addition, we align the two binary numbers by placing them one below the other, similar to how you would perform addition in decimal.
   - Then, we add the binary digits from right to left (starting from the least significant bit), just like you would in regular addition.

The addition proceeds as follows:

  010000000
+ 110001010
-------------
  000001010

- Each column of binary digits is added just like columns in decimal addition, taking into account any carryovers.
- In this case, there's a carryover from the third column to the fourth column (from the right), but all the other additions result in no carryover.
- As a result, the final sum is 000001010 in binary.

Conversion to Decimal:
   - The binary result, 000001010, is equivalent to 10 in decimal.

So, the final result of 320 + 394, represented in both binary and decimal, is 10.

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education