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
koban [17]
4 years ago
11

Convert the decimal number -17 to binary (2's complement)

Computers and Technology
1 answer:
Katarina [22]4 years ago
6 0

Answer:

1111111111101111

Explanation:

The binary representation of 17 is 0000000000010001.

In order to get the binary representation of -17 we need to calculate the 2's complement of 0000000000010001.

Step 1 : 1s complement of 0000000000010001 = 1111111111101110

Step 2 : 2s complement => 1111111111101110 + 1 = 1111111111101111

This actually corresponds to the negative of the original number which was 17.

So the 2s complement representation of -17 is 1111111111101111 .

You might be interested in
Can someone translate this? (it's morse code btw)
iVinArrow [24]

Answer:

It says hello how are you today

Can I please get brainly, it took me a while

6 0
3 years ago
Read 2 more answers
For this project you have been asked to write a program for a local store owner. The store owner wants to keep a record of the n
elena55 [62]

Answer:

see explaination

Explanation:

#include <iostream>

using namespace std;

void display (string* name, double* purchase, int n)

{

cout<<"Name Purchase"<<endl;

cout<<"------------------------"<<endl<<endl;

for(int i=0;i<n;i++)

{

cout<<name[i]<<" "<<purchase[i]<<endl;

}

}

double calculate(double* purchase,int n)

{

double avg, sum=0;

for(int i=0;i<n;i++)

{

sum=sum+purchase[i];

}

avg=sum/n;

return avg;

}

int main()

{

int n;

cout<<"How many customer will you enter? "<<endl;

cin>>n;

string *name=new string[n];

double *purchase=new double[n];

for(int i=0;i<n;i++)

{

cout<<"Enter the customer"<<i+1<<"'s name: "<<endl;

cin>>name[i];

cout<<"Enter that customer's purchase: "<<endl;

cin>>purchase[i];

}

display(name, purchase,n);

double avg=calculate(purchase,n);

cout<<"Average purchase: "<<avg<<endl;

}

See attachment for the screenshot

7 0
3 years ago
Ask one of your parent, grandparent or elder relatives about the popular song during their time they consider their favorite. As
inysia [295]

Answer:

Babooshka by Kate bush

Explanation:

My dad likes this song because it has a very nice beat

I find this sond interesting because the vocals and pitch end up sounding different than you would expect them to be. Also the range of the singer (Kate bush) is amazing

4 0
3 years ago
Which of the following should NOT be done to keep people from slipping on floors? A) Have the proper absorbents in an easy-to-fi
RoseWind [281]

The following options helps keep people from slipping on floors

A) Have the proper absorbents in an easy-to-find place to quickly put on spills : So that accidental little spills can be cleaned right away.

C) Wear slip-resistant footwear : It is a precautionary step to follow, no matter where we go.

D) Mark a slippery area with an easy-to-use tent sign that says " Caution, Slippery floor" : This allows people to be aware of the wet area and cross it cautiously.

Leaving oil and fluids to air dry thoroughly, takes a long time and there are chances that people step over it and slip.

So, the answer is

(B) Anytime oil or fluids are spilled on the floor, leave them to thoroughly air dry.

8 0
4 years ago
Read 2 more answers
What is the primary reason that routing on the internet is redundant
Elena-2011 [213]

Most of the time rerouting on the internet is redundant because a router already does it automatically. For example if one path has a lot of traffic it with put the user on another path with less traffic but same destination.

<span />
4 0
3 years ago
Other questions:
  • Discuss 2D gameplay and how new platforms such as cell phones are taking advantages of this renewed market
    5·1 answer
  • CAPTCHAs can be used as a form of signature to create a valid contract in e-commerce. True False
    6·2 answers
  • A key benefit of inheritance is Group of answer choices an object can have several types, it is type compatible with any of its
    11·1 answer
  • Design a program that will receive a valid time in the 24-hour format (e.g. 2305) and convert to its equivalent 12-hour format (
    14·1 answer
  • Create the logic for a game that simulates rolling two dice by generating two random numbers between 1 and 6 inclusive. The play
    7·1 answer
  • Write a program in C++ that will ask the user to enter a five-digit integer. The program will detect if the number entered is a
    6·1 answer
  • What's the best definition of financial literacy?
    10·1 answer
  • The rhythmic note that three beats is called a____half note.
    15·2 answers
  • A search engine finds bugs and system failures in your computer.<br><br> True or False?
    7·2 answers
  • When is it appropriate to utilize the nat network connection type?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!