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 Python program to convert temperatures to and from celsius, fahrenheit.
Rudiy27

Answer:

https://www.w3resource.com/python-exercises/python-conditional-exercise-2.php

3 0
2 years ago
How is a website most likely to distinguish its different sections?
Jlenok [28]

Answer:

D. by using different background colors for different sections​

Explanation:

This can help people differentiate the different sections of your webpage.

Hope this helps!

4 0
3 years ago
Select the Navy Admiral who invented a high-level programming language FLOW-MATIC in 1953.
oee [108]

Answer:

Grace Hopper.

Explanation:

Grace Hopper was a US Naval Rear Admiral and an American computer scientist who was born on the 9th of December, 1906 in New York city, United States of America. She worked on the first commercial computer known as universal automatic computer (UNIVAC), after the second World War II.

In 1953 at the Remington Rand, Grace Hopper invented the first high-level programming language for UNIVAC 1 by using words and expressions.

Hence, Grace Hopper was the Navy Admiral who invented a high-level programming language FLOW-MATIC in 1953.

Additionally, FLOW-MATIC paved the way for the development of common business-oriented language (COBOL).

4 0
3 years ago
Programming challenge description: Write a program that, given two binary numbers represented as strings, prints their sum in bi
Lubov Fominskaja [6]

Answer:

The program to this question can be given as:

Program:

#include<iostream>  //include header file

using namespace std;  

string add(string a, string b)  //define add function

{       //declare variable  

   string result = "";  

   int sum = 0,k,l;      

   cahr x;    

   k= a.size() - 1;

   l = b.size() - 1;  

   while (k>= 0 || l>= 0 || sum == 1) //loop

   {

   //addition 

       sum= sum+ ((k >= 0)? a[k] - '0': 0);  

       sum= sum+ ((l >= 0)? b[l] - '0': 0);

        x=sum%2;

      result=(x+'0') +result;

  // Compute carry

       sum =sum/ 2;  

       // Move to next digits  

       k--;  

       l--;  

   }  

   return result; //return value

}

int main()  //main method  

{  

   string a,b;  //string variable

   cout<<"Enter first binary digit: ";  //message.

   cin>>a;     //input from user

   cout<<"Enter Second binary digit: ";  //message.

   cin>>b;     //input from user

   cout <<"Addition :"<<add(a, b)<<endl; //print addition

   return 0;  

}

Output:

Enter first binary digit: 1101

Enter Second binary digit: 100

Addition :10001

Explanation:

In the above c++ program first, we include the header file. Then we define the add function in the add function we add two binary digits by passing value as arguments. In this function, we define a variable that is used on the addition of binary numbers. In this function we define the loop in the loop we check if two binary number is 1 then it will print 0 and pass 1 as the carry. after performing addition it will return value. In the main function, we take two binary numbers from the user and pass the value to the function and print function return value.

8 0
3 years ago
.Write a C++ program that displays your name and address (if you value your privacy, a fictitious name and address).
olga_2 [115]

Answer:

#include <iostream>

using namespace std;

int main() {

   cout<<"My name is Rajat Sharma"<<endl<<"My address is Flat no=23 GH=5 Paschim Vihar New Delhi 110087 India"<<endl;

return 0;

}

Explanation:

The program is written in C++ language.In the program I have used cout to print my name and the address.First the name will be printed then the address in the new line endl is used for new line.To print any sentence just put them in double quotes.The same sentence in the program will be printed on the screen.

5 0
3 years ago
Other questions:
  • What are the benefits of using a multiview sketch to communicate a design?
    11·1 answer
  • Karen thinks she should go out with Blane, an unattractive, social misfit, because “If I don’t go out with him, people will thin
    7·1 answer
  • Website administrators relay on ______, which is data such as the number of users who commented on, shared, viewed, or liked web
    7·2 answers
  • One of the most common uses of spreadsheet are
    12·1 answer
  • Select each of the strategies you can use to be more efficient when using the Internet. using tabs creating tables creating book
    6·2 answers
  • ______ are used to store all the data in a database.
    7·1 answer
  • Jerry purchased 25 dozens of eggs. He used 6 eggs to bake 1 cake. How
    14·1 answer
  • Assume in the for loop header, the range function has the three arguments: range (1, 10, 3), if you were to print out the value
    6·1 answer
  • What are the fundamental activities that are common to all software processes?
    9·1 answer
  • Many of the first photographers were actually scientists and inventors. True or false?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!