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
Gennadij [26K]
3 years ago
11

Express 278910 in binary – Use the technique of subtracting powers of 2

Computers and Technology
1 answer:
Sedaia [141]3 years ago
6 0

Answer: The decimal number 278910, expressed in binary, is as follows:

               1000100000101111110

Explanation:

Any decimal number can be expressed as a linear combination of powers of 2, as follows:

N = aₙ* 2ⁿ +.....+ a₀*2⁰, where the coefficients aₓ can be 0 or 1.

This means that any number, can be decomposed in powers of 2, so a useful and at the same time simple way to find the binary equivalent of a decimal number, is simply to substract from the number the maximum power of 2 that gives a positive outcome, and put a "1" in the most left position, filling with zeros to the right till finding the following power of two (obtained repeating the process with the result from the first substraction).

For the first substraction, we try different choices, until we get a positive result substracting 2¹⁸ from 278910, as follows:

278,910-262,144= 16,766.

Intuitively, we know that as being 16 a power of 2, it's possible that a number close to the one we have as a result, be a power of 2 indeed.

Trying with 2¹⁴, we find that we are right, because the result is a small number:  

16,766 - 16,384 = 382

Now. it's very easy, as the greatest power of 2 smaller than 382, is 2⁸=256.  

382-256= 126.

126 can be written as 64+32+16+8+4+2, so all that we need now is, going from left to right, put "1", as the coefficient of the powers of 2 18, 14, 8, 6, 5,4,3,2 and 1, filling with zeros the remaining ones.

The final number can be written as follows:

1000100000101111110

You might be interested in
In a presentation, bullets in a text box will do which of the following?
vesna_86 [32]
It will help you present data with concise statements.
8 0
4 years ago
The ______ process retains copies of data over extended periods of time in order to meet legal and operational requirements.
ikadub [295]

Answer:

archive

Explanation:

the archive process retains copies of data over extended periods of tike in order to meet legsl ane operational requirements

4 0
2 years ago
Before making a dish, we want to check whether we already have the necessary ingredients in our pantry or whether we need to go
Leona [35]

Answer:

class Pantry(AD):

              def __init__(self, ingredients):

""" We initialize the Pantry class by passing the ingredients that were passed in to the initializer for the superclass AD"""

              super().__init__(ingredients)

              def needed_ingredients(self, recipes):

""" Given a list of recipes, computes which ingredients to buy, and in which quantity to be able to make all recipes. Can be implemented in 10 lines of code."""

              # define the object new_pantry to contain the ingredients needed

               new_pantry = Pantry({})

                ingredients_present = self

                # loop over the recipes in the list

                for recipe in recipes:

                        # convert ingredients of recipe from AD to Pantry

                        ingredients = Pantry(recipe.ingredients)

                        # subtract the recipe's ingredients from ingredients_present

                          ingredients_present = ingredients_present - ingredients

                        # loop over the ingredients_present for key in ingredients_present:

                       # if any ingredients's quantity < 0, add it to new_pantry

                                                           if ingredients_present[key] < 0:

# check if ingredient is present in new_pantry, add the quantity to existing quantity

                                                               if key in new_pantry:

                                            new_pantry[key] += -1*(ingredients_present[key])

else: # if ingredient is not present in new_pantry, make a new entry for the ingredient

                                               new_pantry[key] = -1*(ingredients_present[key])

ingredients_present[key] = 0      # set the quantity of the ingredient in ingredients_present to 0

Explanation:

I believe everything else is provided in the question.

Copy all the details you were provided in the question as it is and add the needed_ingredients in the Pantry class.

If you are getting any assertion error, Update the code to set the negative quantities in ingredients_present to 0

6 0
3 years ago
Sorry, I cant tell you, you need to know
Luba_88 [7]

Answer:

answer a

Explanation:

sorry it’s for the points

7 0
2 years ago
Read 2 more answers
Which of the following statements best reflects the difference between Warner Brothers and MGM?
schepotkina [342]

Answer:

MGM started in film production, while Warner Bros started in distribution.

Explanation:

Metro-Goldwyn-Mayer Studios Inc or MGM was founded in 1924 for Marcus Loew, located at 245 North Beverly Drive in Beverly Hills, California, this company produce feature films and television programs.

Warner Bros. Entertainment Inc was founded in 1923 for Harry, Albert, Sam, and Jack Warner, this company has operations in areas such as film, television, and video games, In 1918 they opened the first Warner Brothers Studio on Sunset Boulevard in Hollywood. Handled finance and distribution in New York City. During World War I their first nationally syndicated film, My Four Years in Germany.

7 0
3 years ago
Other questions:
  • In order to allow communication between vlans for exchange of data what must be used?​
    15·1 answer
  • Personality traits such as thoughtfulness, empathy, self-control, and goal orientation belong to the _____ category.
    5·2 answers
  • How do you make an app for help
    6·2 answers
  • The Middle East links which two countries
    10·2 answers
  • 2) [13 points] You’ve been hired by Banker Bisons to write a C++ console application that determines the number of months to rep
    8·1 answer
  • Which tool is best used to test an electrical current for a power source?
    8·1 answer
  • An error condition consisting of an error in the passing of parameters -- a method passes or returns an unexpected value such as
    12·1 answer
  • The SPF strategy can be proven to be optimal in the sense that it minimizes average response times. In this problem, you will de
    10·1 answer
  • They removed my other post but I didn't learn my lesson :)
    11·1 answer
  • What device senses short circuits and stops electrical flow when ground faults occur?.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!