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
Aiden reads a few books of his book on on day one.
const2013 [10]

Answer:

ok

Step-by-step explanation:

4 0
2 years ago
Read 2 more answers
What are the domain, range, and asymptote of h(x) = (0.5)^x -9
Gala2k [10]

Answer:

Domain- Interval Notation:

( − ∞ , ∞ )

Set-Builder Notation:

{ x | x ∈ R }

Range- Interval Notation:

( − 9 , ∞ )

Set-Builder Notation:

{ y | y > − 9 }

Step-by-step explanation:

Horizontal asymptote- y=-9

3 0
3 years ago
1.
Yuliya22 [10]

Answer:

C (-2, 0)

Step-by-step explanation:

y = x+2

intersect the x-axis when y = 0, then

0 = x+2

x = -2

7 0
3 years ago
If a game consists of picking a number from a bag of beans numbered 2, 2, 3, 4, and 5 and flipping a coin, which probabilities a
White raven [17]

Answer:

I say C. Because 2 shows up twice for the bag of beans

Step-by-step explanation:

8 0
2 years ago
Read 2 more answers
Y=-1/3x +5 <br> Please thank u
PolarNik [594]
Ok this is a linear equation that is descending and is in slope intercept form
8 0
3 years ago
Other questions:
  • Simplify the expression –3(x + 3)2 – 3 + 3x. What is the simplified expression in standard form?
    12·2 answers
  • How to find square root of 2
    10·1 answer
  • Conducting financial transactions through the internet on your cell phone is known as
    10·2 answers
  • Is a rectangle with curved angles a polygon
    11·1 answer
  • The length of the arc intercepted by a congruent central angle is proportional to the _______ in similar circles.
    13·2 answers
  • Can someone help me with this problem
    10·1 answer
  • Which pair of figures has the same number of faces as vertices
    8·1 answer
  • At a factory, a machine puts tops on bottles at a rate of 90 bottles per minute. How many tops can be put on bottles between 10:
    13·1 answer
  • Find 2.64 / 0.6 step by step
    14·1 answer
  • What else would need to be congruent to show that A ABC= AXYZ by ASA?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!