1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Wittaler [7]
4 years ago
8

Convert each of the following 8-bit numbers to hexadecimal and then to octal a) 10011101 b) 00010101 c) 11100110 d) 01101001

Computers and Technology
1 answer:
EastWind [94]4 years ago
7 0
<h2>Answer:</h2>

a) 10011101₂ = 9D₁₆ or 235₈

b) 00010101₂ = 15₁₆ or 025₈

c) 11100110₂ = E6₁₆ or 346₈

d) 01101001₂ = 69₁₆ or 151₈

<h2>Explanation:</h2>

An hexadecimal is a group of 4bits while an octal is a group of 3 bits. They are represented in the table below;

<em>Table for conversion;</em>

Octal   =>    binary

0         =>     000

1          =>     001

2          =>    010

3          =>    011

4          =>    100

5          =>    101

6          =>    110

7          =>    111

Hexadecimal   => binary

0                      =>     0000

1                       =>     0001

2                      =>     0010

3                      =>     0011

4                      =>     0100

5                      =>     0101

6                      =>     0110

7                      =>     0111

8                      =>     1000

9                      =>     1001

A                      =>    1010

B                      =>    1011

C                      =>    1100

D                      =>    1101

E                      =>    1110

F                      =>    1111

(a)

(i) <u>Convert 10011101 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

1001   1101

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

1001 = 9

1101 = D

<u>Step 3: </u> Put them together;

1001 1101₂ = 9D₁₆

(ii) <u>Convert 10011101 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

10  011  101

<u>Step 2: </u> The last group (10) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

010  011  101

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

010 = 2

011 = 3

101 = 5

<u>Step 4: </u> Put them together;

10 011 101₂ = 235₈

(b)

(i) <u>Convert 00010101 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

0001   0101

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

0001 = 1

0101 = 5

<u>Step 3: </u> Put them together;

0001 0101₂ = 15₁₆

(ii) <u>Convert 00010101 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

00  010  101

<u>Step 2: </u> The last group (00) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

000  010  101

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

000 = 0

010 = 2

101 = 5

<u>Step 4: </u> Put them together;

00 010 101₂ = 025₈

(c)

(i) <u>Convert 11100110 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

1110  0110

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

1110 = E

0110 = 6

<u>Step 3: </u> Put them together;

1110 0110₂ = E6₁₆

(ii) <u>Convert 11100110 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

11 100 110

<u>Step 2: </u> The last group (11) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

011 100 110

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

011 = 3

100 = 4

110 = 6

<u>Step 4: </u> Put them together;

11 100 110₂ = 346₈

(d)

(i) <u>Convert 01101001 to hexadecimal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 4s as follows;

0110 1001

<u>Step 2: </u> Convert each of the groups into its equivalent hexadecimal using the table above;

0110 = 6

1001 = 9

<u>Step 3: </u> Put them together;

0110 1001₂ = 69₁₆

(ii) <u>Convert 01101001 to octal</u>

<u>Step 1: </u> Starting from the right, split the number into groups of 3s as follows;

01 101 001

<u>Step 2: </u> The last group (01) in the result of step 1 above has only 2 bits. Therefore, add zero to its left to make it 3 bits as follows;

001 101 001

<u>Step 3: </u> Convert each of the groups into its equivalent octal using the table above;

001 = 1

101 = 5

001 = 1

<u>Step 4: </u> Put them together;

01 101 001₂ = 151₈

You might be interested in
Suppose you have two RAID arrays, one implementing RAID 3, the other RAID 5. Each has 9 disk drives in its array. If the RAID 5
Snezhnost [94]

Answer:

48 is the answer

Explanation:

16×3 is the explanation for your question

8 0
3 years ago
What are the steps to insert an image into an email message place the steps in the correct order
AnnyKZ [126]

Answer:

How to insert photo into email?

Insert a picture into the body of an email message

To insert a picture that displays in the body of an email message, use the following steps: Position your cursor where you want the image in your message. Select Insert > Pictures. Browse your computer or online file locations for the picture you want to insert. I think this is helpful

8 0
3 years ago
Read 2 more answers
Using a while loop, create an algorithm extractDigits that prints the individual digits of a positive integer.
sergiy2304 [10]

Answer:

The algorithm is as follows

1. Start

2. Declare Integer N

3. Input N

4. While N > 0:

4.1    Print(N%10)

4.2   N = N/10

5. Stop

Explanation:

This line starts the algorithm

1. Start

This declares an integer variable

2. Declare Integer N

Here, the program gets user input N

3. Input N

The while iteration begins here and it is repeated as long as N is greater than 0

4. While N > 0:

This calculates and prints N modulus 10; Modulus of 10 gets the individual digit of the input number

4.1    Print(N%10)

This remove the printed digit

4.2   N = N/10

The algorithm ends here

5. Stop

<u>Bonus:</u>

The algorithm in Python is as follows:

<em>n = 102</em>

<em>while n>0:</em>

<em>     print(int(n%10))</em>

<em>     n= int(n/10)</em>

<em>    </em>

8 0
3 years ago
Write a program with a function that accepts a string as an argument and returns the number of uppercase, lowercase, vowel, cons
diamong [38]

Answer:

Explanation:

The following code is written in Python. It is a function called checkString that takes in a string as an argument and loops through each char in that string and checking to see if it is lowercase, uppercase, vowel, consonant, or punctuations. It adds 1 to the correct variable. At the end of the loop it prints out all of the variables. The picture below shows a test output with the string "Brainly, Question."

def checkString(word):

   uppercase = 0

   lowercase = 0

   vowel = 0

   consonants = 0

   punctuation = 0

   vowelArray = ['a', 'e', 'i', 'o','u', 'y' ]

   consonantArray = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']

   punctuationArray = ['.', '!', '?', ',', ';', '(', ')']

   for char in word:

       if char.isupper():

           uppercase += 1

       else:

           lowercase += 1

       if char.lower() in vowelArray:

           vowel += 1

       elif char.lower() in consonantArray:

           consonants += 1

       if char in punctuationArray:

           punctuation += 1

   print('Uppercase: ' + str(uppercase))

   print('Lowercase: ' + str(lowercase))

   print('Vowels: ' + str(vowel))

   print('Consonants: ' + str(consonants))

   print('Punctuations: ' + str(punctuation))

8 0
3 years ago
Implement a sorting algorithm and sort the vocab array (found below) alphabetically. For this question, do not define or use an
Stolb23 [73]

Answer:

vocab = [ "Libraries", "Bandwidth", "Hierarchy", "Software", "Firewall", "Cybersecurity","Phishing", "Logic", "Productivity"]

print(vocab)

needNextPass = True

k = 1

#list = [x.lower() for x in list]

while k < len(vocab)-1 and needNextPass:

   # List may be sorted and next pass not needed

   needNextPass = False

   for i in range(len(vocab) - k):

       if vocab[i] > vocab[i + 1]:

           # swap list[i] with list[i + 1]

           temp = vocab[i]

           vocab[i] = vocab[i + 1]

           vocab[i + 1] = temp

           needNextPass = True  # Next pass still needed

print(vocab)

Explanation:

I hope this helps you!

3 0
4 years ago
Other questions:
  • What is an enterprise system
    14·2 answers
  • Which of these is an effective color scheme? A. red text on black background B. red text on red background C. yellow text on bl
    7·2 answers
  • A tornado may be approaching if you observe which of the following?
    15·1 answer
  • Under the advanced options screen, what startup option should be enabled in order to view what did and did not load during the b
    12·1 answer
  • A.<br> Post-It note<br> b.<br> notebook<br> c.<br> tutor<br> d.<br> spell check
    14·1 answer
  • Which layer includes the physical transmission medium (cables or wireless media) that any network must use to send and receive t
    8·1 answer
  • What is a statement that adds 1 to the int j when the int counter has a value less than the int n?
    12·1 answer
  • The the concept of plug-and-play is demonstrated by which of the following scenarios
    14·2 answers
  • Explain the process of a for loop and how it is used in code
    9·1 answer
  • Macro mode is used to take landscape photographs of subjects fairly far from the camera.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!