6_ConversionPractice_updated_9_11_2023

pdf

School

Purdue University *

*We aren’t endorsed by this school

Course

17600

Subject

Computer Science

Date

Jan 9, 2024

Type

pdf

Pages

7

Uploaded by MateScienceFerret45

Report
CNIT 17600 - Intro Computer Architecture - Conversion Practice 1 Radix (Base) Conversion Practice Activity Overview Practice converting from decimal to binary and hex, and vice versa. Practice with repre- senting a binary number with a sign (positive/negative). Note that there are online calculators that will do a lot of the work here for you, but on the lecture exam you will have to do it yourself. You should really make sure you understand how and are able to do so. This is meant as practice to help you learn how. Problems Question 1 Question 1a: Determine the unsigned binary encoding of the number 177 10 Question 1b: Determine the unsigned binary encoding of the number 245 10 Question 1c: Determine the unsigned binary encoding of the number 042 10 Question 1d: Convert the following binary number to hexadecimal (hint: use 4-bit nibbles): 11101110110000111101010010110000 Question 1e: Convert the following binary number to octal (hint: use 3-bit groups): 111001101111 Question 1f: Convert the following hexadecimal number to decimal: B13F Question 1g: Determine the signed magnitude binary encoding of the number 117 10 .
CNIT 17600 - Intro Computer Architecture - Conversion Practice 2 Question 1h: Determine the signed magnitude binary encoding of the number 117 10 . Question 1i: Find the one’s complement of the positive binary number 01101010 2 to encode the negative quantity. Question 1j: Find the two’s complement of the positive binary number 01101110 2 to encode the negative quantity. Question 2 Question 2a: Determine the binary encoding for a system that uses two’s complement of the base-10 quantities negative six and six for a digital system where all binary numbers are repre- sented by four bits, and one where all numbers are represented by eight bits (one byte ). Question 2b: Determine the two’s complement of the base-10 quantities negative one hundred thirty three and one hundred thirty three for a digital system where all binary numbers are represented by 1 byte, and one where all numbers are represented by 16 bits (2 bytes ).
CNIT 17600 - Intro Computer Architecture - Conversion Practice 3 Question 3 In a computer system that represents all integer quantities using two’s complement form, the most significant bit has a negative place-weight. For an eight-bit system, the place weights are as follows: 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 Given this place-weighting, convert the following eight-bit two’s complement binary num- bers into decimal form: 01110100 2 = 11010110 2 = 11111000 2 = 10101000 2 = 10000110 2 = 01110100 2 = 11111011 2 =
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
CNIT 17600 - Intro Computer Architecture - Conversion Practice 4 Question 4 Counting practice: count from zero to thirty-two in binary, octal, and hexadecimal. Binary Octal Hexadecimal Zero One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve Thirteen Fourteen Fifteen
CNIT 17600 - Intro Computer Architecture - Conversion Practice 5 Binary Octal Hexadecimal Sixteen Seventeen Eighteen Nineteen Twenty Twenty one Twenty two Twenty three Twenty four Twenty five Twenty six Twenty seven Twenty eight Twenty nine Thirty Thirty one Thirty two
CNIT 17600 - Intro Computer Architecture - Conversion Practice 6 Question 5 Remember that a number system is a set of counting rules. When we are working within a number system (bound by the rules of which numerals are legal), there are generalizations we can make and patterns we can find. How is the base represented in each of the number systems? 2 10 in base 2? 8 10 in base 8? 16 10 in base 16? Question 6 Searching for patterns in numbers. Using your counting practice table as a source of pre- liminary data, draw generalized conclusions that can help speed up conversion between bases. Generate at least 4 data points for each sub question. –In base 10, how are multiples of the base represented? 2 · 10 10 =? 10 3 · 10 10 =? 10 4 · 10 10 =? 10 5 · 10 10 =? 10 –In base 2, how are multiples of the base represented? 2 · 2 10 =? 2 3 · 2 10 =? 2 4 · 2 10 =? 2 5 · 2 10 =? 2 –In base 8, how are multiples of the base represented? 2 · 8 10 =? 8 3 · 8 10 =? 8 4 · 8 10 =? 8 5 · 8 10 =? 8 –In base 16, how are multiples of the base represented? 2 · 16 10 =? 16 3 · 16 10 =? 16 4 · 16 10 =? 16 5 · 16 10 =? 16
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
CNIT 17600 - Intro Computer Architecture - Conversion Practice 7 –In general, what can you say about multiples of a base (i.e 2 r , 3 r , 4 r (where r is radix))? Are there any exceptions? Question 7 Searching for patterns in numbers. Generate at least 4 data points for each sub question. –In base 10, how are powers of the base represented? 10 10 2 =? 10 10 10 3 =? 10 10 10 4 =? 10 10 10 5 =? 10 –In base 2, how are powers of the base represented? 2 10 2 =? 2 2 10 3 =? 2 2 10 4 =? 2 2 10 5 =? 2 –In base 8, how are powers of the base represented? 8 10 2 =? 8 8 10 3 =? 8 8 10 4 =? 8 8 10 5 =? 8 –In base 16, how are powers of the base represented? 16 10 2 =? 16 16 10 3 =? 16 16 10 4 =? 16 16 10 5 =? 16 –In general, what can you say about powers of a base? Are there any exceptions?