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
maria [59]
3 years ago
10

Multiply 1101 and 0110 in binary.

Computers and Technology
1 answer:
mojhsa [17]3 years ago
5 0

Answer:

1101*0110=1001110

Explanation:

First, multiply like if you were multiplying normally, but keep in mind this:

1*0=0

0*0=0

0*1=0

1*1=1

You should get this result:

          1 1 0 1

         0 1 1 0 x

-------------------------

         0 0 0 0

      1  1  0  1  0

   1  1  0  1  0 0    

0 0 0 0 0  0 0

Now sum these terms:

        0 0 0 0

     1  1  0  1  0

  1  1  0  1  0 0    +

0 0 0 0 0  0 0

-------------------------

The first column, from the right:

0+0+0+0=0

The second column, from the right:

0+1+0+0=1

The third column, from the right:

0+0+1+0=1

The fourth column, from the right:

1+1+0=2,

2 in binary is 0010, so we put 0 and we carry the 1

The fith column from the right:

(because we carried the 1 from the previous sum)

1+1+0=2, so the same, we put 0 and we carry the 1

And finally the sixth column, from the right:

(because we carried the 1 from the previous sum)

1+0=1

So:

          1 1 0 1

         0 1 1 0 x

-------------------------

        0 0 0 0

     1  1  0  1  0

  1  1  0  1  0 0    +

0 0 0 0 0  0 0

-------------------------

1  0 0  1  1  1  0

Let's verify the results:

1101=2^{3} +2^{2} +0 +2^{0} =8+4+0+1=13

0110=0+2^{2} +2^{1} +0 =0+4+2+0=6

13*6=78

1001110=2^{6} +0+0+2^{3} +2^{2} +2^{1} +0=64+0+0+8+4+2+0=78

You might be interested in
Write a function: function solution(N); that, given a positive integer N, prints the consecutive numbers from 1 to N, each on a
koban [17]

Answer:

<em>The program written in Python is as follows:</em>

def solution(N):

     concat = ""

     for i in range(1,N+1):

           if not(i%2 == 0 or i%3 ==0 or i%5 == 0):

                 print(str(i))

           else:

                 if i%2 == 0:

                       concat= concat+"Codility"

                 if i%3 == 0:

                       concat= concat+"Testers"

                 if i%5 == 0:

                       concat= concat+"Coders"

                 print(concat)

                 concat = ""

N = int(input("Enter a positive integer: "))

solution(N)

Explanation:

This line declares the function

def solution(N):

This line initializes a variable named concat to an empty string

     concat = ""

This line iterates from 1 to the input integer

     for i in range(1,N+1):

<em>This line checks if the current number of iteration is divisible by 2,3 or 5, if no, the number is printed</em>

           if not(i%2 == 0 or i%3 ==0 or i%5 == 0):

                 print(str(i))

<em>If otherwise</em>

           else:

<em>This lines checks if current number is divisible by 2; if yes the string "Codility" is concatenated to string concat</em>

                 if i%2 == 0:

                       concat= concat+"Codility"

<em>This lines checks if current number is divisible by 3; if yes the string "Testers" is concatenated to string concat</em>

<em>                 </em> if i%3 == 0:

                       concat= concat+"Testers"

<em>This lines checks if current number is divisible by 2; if yes the string "Coders" is concatenated to string concat</em>

                 if i%5 == 0:

                       concat= concat+"Coders"

<em>The concatenated string is printed using this line</em>

                 print(concat)

This variable concat is intialized back to an empty string

                 concat = ""

The main method starts here

N = int(input("Enter a positive integer: "))

This line calls the defined function solution

solution(N)

6 0
3 years ago
One of the jobs of the webmaster are to create a website<br>true or false
Talja [164]

true is the correct answer

8 0
3 years ago
Read 2 more answers
In HTML, what is an element?
klio [65]

An element is what makes up the HTML long story short.

8 0
3 years ago
Read 2 more answers
Phillip wants to create a new Google Display Ad campaign and base his targeting on an existing remarketing list named Checkout A
77julia77 [94]

Answer:

Similar Audience that finds who are similar to those on the Checkout Abandoners list.

Explanation:

Phillip needs to develop the latest google Display Advertising project, as well as focus its aiming over a current Checkout Abandoners shopping list. Thus, that Similar Audience which identifies users specific for others throughout the Abandoners checkout detail to support Phillip accomplish his promotional objectives.

3 0
3 years ago
The function below takes two arguments: a dictionary of strings (keys) to integers (values) a_dict and a list of strings key_lis
vitfil [10]

Answer:

  1. def getData(a_dict, key_list):
  2.    result = []
  3.    for key in key_list:
  4.        result.append(a_dict[key])
  5.    
  6.    return result  
  7. result = getData( {"puffin": 5, "corgi": 2, "three": 3} , ["three", "corgi"])
  8. print(result)

Explanation:

Let's define a function <em>getData() </em>with two parameters,<em> a_dict </em>and <em>key_list</em> as required by the question (Line 1).

Since the function is to return a list of associated values of dictionaries, a new list,<em> result</em>,  is declared and initialized with empty values (Line 2).

Next, use for-loop to traverse through every string in the input <em>key_list </em>(Line 4) and use the traversed key to address the value in the<em> a_dict </em>and add it to the <em>result</em> list (Line 5)

At last, return the <em>result </em>list as output (Line 7)

We can test the function using the test case from the question and we shall see the output as follows:

[3, 2]

8 0
3 years ago
Other questions:
  • How do rubrics increase learning?
    15·2 answers
  • Why is wearable technology important?
    12·1 answer
  • Which aspects of a project do project makers oversee?
    12·2 answers
  • What is likely to happen to the economy when there’s too much money or credit circulating?
    13·1 answer
  • HELP PLZ !!
    13·1 answer
  • Which of the following is a correct group scope type in AD, windows server 2016?
    6·1 answer
  • All health information available on the internet is valid. <br> a. true <br> b. false
    6·1 answer
  • You designed a program to create a username using the first three letters from the first name and the first four letters of the
    6·1 answer
  • If 2 people use my code D9R2M on fetch reward and scan receipts I will give brainliest ​
    13·2 answers
  • Which of the following are the most important reasons people in the 1920s were so interested in seeing lifelike stories in audio
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!