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
Reptile [31]
3 years ago
15

Assigned newbits with the opposite values of oldbits if flipbits is true. ex: if oldbits = [1, 1, 0, 1] and flipbits is 1, then

newbits = [0, 0, 1, 0]
Mathematics
1 answer:
Kisachek [45]3 years ago
5 0

Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...

<span>if x x = false; else x = true; <span>end</span></span>
You might be interested in
Yvonne continues to work full-time at her job while she attends college part-time. It takes 5 years for Yvonne to complete
Leni [432]
The answer to this is A
5 0
3 years ago
Write equivalent fractions for 11/12 and 9/10 using the least common denominator
qwelly [4]

Answer:

55/60 and 54/60

Step-by-step explanation:

The LCD is 60. Multiply numerators and denominators. Hope this helps.

8 0
3 years ago
Read 2 more answers
What is the perimeter
lianna [129]

Answer:

3(3+\sqrt{6\\})

Step-by-step explanation:

Find the side lengths

6, 3, and 3\sqrt{6\\}

Add them

3(3+\sqrt{6\\})

3 0
3 years ago
Alan bought 3 pencils and a notebook. The notebook cost $6, and he spent a total of $12. How much did each pencil cost? Use p to
arsen [322]
So the pencils all together would be $6 so divide that by 3 and you get D as your answer each pencil costs $2
7 0
4 years ago
Read 2 more answers
Find volume of cylinder
DIA [1.3K]

Answer:

452.16 unit^3

Step-by-step explanation:

The volume of a cylinder is given by

V = pi r^2h

The radius is 6 and the height is 4

  3.14 ( 6)^2 4

 3.14 * 36 *4

 452.16 unit^3

6 0
3 years ago
Read 2 more answers
Other questions:
  • Someone please help me will give BRAILIEST?!!!
    12·2 answers
  • Four less than the product of twice a number and eight
    12·1 answer
  • How do you find the perfect square of 49
    9·1 answer
  • Find the area of a regular octagon with a radius of 20​
    12·2 answers
  • A recipe calls for gallon of punch, 3 pints of club soda, and 2 cups of ice cream. How many quarts does the recipe make? (2 qt)
    13·1 answer
  • HELP PLEASEEEE &gt;.&lt; Its 8 pm and I'm tired :c
    14·1 answer
  • Can I have help I am stuck on this problem It would mean the world if u helped me and tysm!! =-)
    6·2 answers
  • A bird (B) is spotted flying 900 feet from an observer. The observer (O) also spots the top of a tower (T) at a height of 200 fe
    6·1 answer
  • An otter is swimming at - 4.2yo relative to the surface of the water. It dives 6.0 yds desper. After thedive, what is the otter'
    7·1 answer
  • Mathematic 14 dont undertsqnd
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!