Alex Amado, HW3

.pdf

School

Purdue University *

*We aren’t endorsed by this school

Course

10100

Subject

Computer Science

Date

Dec 6, 2023

Type

pdf

Pages

10

Uploaded by MinisterPartridge3587

Report
CS 10100 Homework 03 This is Question 1 on Page 1 CS 101 Homework 03 Due Thursday, 9/14, 11:59 pm Delete nothing from this file. Edit this file to add your typewritten answers to each question. When your answer includes a diagram make sure that it is clear and large enough to read. Ensure that your answer fits on the same page as its question. If you change the pagination of this file or if your complete answer to a question does not fit on the page with that question, then you may receive a lower score. Export your completed Word file to PDF. Upload your PDF file to Gradescope.com. It is your responsibility to upload this assignment to its correct place in Gradescope. You may upload multiple times. Your final upload will be scored. Use the download capability to check your upload. Uploading will be blocked after the due time (plus grace period). Max score = 10 points; 1 point per question. The above directions apply for all assignments uploaded to Gradescope. Why should your answer be on the same page with its question? Answer: Gradescope has been programmed to expect that your PDF file will have exactly one question and your entire answer to it on one page. This allows Gradescope to automatically find and display your answers to the instructional team for scoring. HW03 Q1. One bit can encode two patterns (the pattern 0 and the pattern 1). How many patterns can 5 bits encode? How many patterns can 2 bytes encode? 5 bits can encode 32 bits because 2 to the fifth power is 32. Finding how many patterns 2 bytes can encode is a little harder to determine. Firstly, since there are 8 bits in 1 byte, you have to times 8 by 2, since there are 2 bytes. Then, you have to put 2 raised to that number, so your equation would look like: 2^(2•8), which equals 2^16, which is equal to 65, 536 different values.
CS 10100 Homework 03 This is Question 2 on Page 2 HW03 Q2. Assume your computer stores integers using six-bit 2’s complement representation. a. What is the range of the integers your computer can represent? The computer would be able to store integers -32 through 31 b. What is representation of -10? 110110 c. What the representation of -31? 100001
CS 10100 Homework 03 This is Question 3 on Page 3 HW03 Q3. What is the binary result of the following arithmetic problems? a. 0111111 + 1010111 63 + 87 = 150 = 10010110 b. 111010 + 110110 58 + 54 = 112 = 1110000 c. 1100000 – 0011111 96 – 31 = 65 = 1000001
CS 10100 Homework 03 This is Question 4 on Page 4 HW03 Q4. Uncle Bob wants to buy a new computer with a 1TB hard drive to store his movie collection. If each movie file is approximately 2GB in size, how many movies can Uncle Bob store on his new computer? If his storage is 1TB, and each file is 2GB in size, then he can hold 500 files. 1TB is equal to 1000GB, and 1000 divided by 2 is 500, so he can store 500 movies on his new computer.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help