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
The segments shown below could form a triangle?
Leni [432]

Answer:

<em>Option B; False</em>

Step-by-step explanation:

Consider a Triangle Inequality to prove that these segments could form a triangle;

| a - b | < c < a + b,\\| c - a | < b < a + c,\\| c - b | < a < b + c, Considering - a - segment AC ( 8 units ) - b - BC ( 7 units ), -  c - BC ( 15 units )\\\\| 8 - 7 | < 15 < 8 + 7,\\1 < 15 < 15, Now 15 is not < 15, it is =, thus ;\\Solution ; False

<em>These segments could not form a triangle</em>

3 0
2 years ago
Read 2 more answers
my 4th time another hunnid points easy right cmon now Your weclome! Cmon dont be rude i just helped you why dont you do me a fav
frosja888 [35]

Answer:

thank you sm!

Step-by-step explanation:

I hope you have a good day / night ^^

☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️

6 0
3 years ago
What is the inverse function f(x)=-3x-2
vesna_86 [32]

f^-1 (x) = 2/3 + x/3

6 0
2 years ago
Linda found that the cost to get a swimming pool installed in her backyard is a linear function of the pool's area. A swimming p
joja [24]

Answer:

$35,000

Step-by-step explanation:

if $50,000 is to install an area of 1,000 square feet swimming pool and $35,000 can be used to install an 800 square foot swimming pool I think the best graph model is 800 square feet for $35,000 for a cost cut of $15,000 is a good bargain

7 0
3 years ago
Write the decimal equivalent for this fraction 70/100
d1i1m1o1n [39]

Answer:

0.7 is the decimal equivalent to 70/100.

Step-by-step explanation:

You can just do the numerator (70) divided by the denominator (100): 70÷100 = 0.7

8 0
2 years ago
Other questions:
  • How do you solve 8x+5=3x+15
    13·1 answer
  • 4/12 divided by 4/12
    7·1 answer
  • Rewrite csc60° in terms of its cofunction
    7·1 answer
  • What is the equation of a line with a slope of 7 and a point (1, 8) on the line?
    9·1 answer
  • What is 4 plus 4 plus 4 plus 4 plus 1,3456
    10·2 answers
  • Translate the following words into an algebraic expression.
    15·2 answers
  • 25pts awarded and brainliest awarded, plz help asap!!!!!!
    12·1 answer
  • Help giving brainless
    10·2 answers
  • a) How many triangles are created when diagonals are drawn from a single vertex in an n-gon? b) What is the sum of interior angl
    12·1 answer
  • The midpoint of CD is (-3,4) and one endpoint is (2,5). What is the coordinate of the other
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!