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
If a university wants to maintain a 14:1 ratio between students and teachers, how many teachers would be needed to accommodate 8
kolezko [41]
The answer is C. 64 teachers. 

14 x 64= 896 
so 1 x 64= 64
4 0
3 years ago
Read 2 more answers
Log x - log x -1² = 2log(x-1)​
kap26 [50]

Answer:

Exact form

x= \sqrt{10/10 + 1

Decimal

x=1.31622776

Step-by-step explanation:

8 0
3 years ago
the ratio of students with bikes to students with scooters in the school is 85:51. What is the greatest common factor that you c
Vikentia [17]
Answer:GCF=17

To find the greatest common factor, or GCF, of the numbers, we first need to list the prime factors of both 85 and 51

52=3*17

85=5*17

17 is the sole common factor that these two numbers have in common, therefore 17 is the GCF.

To simplify the ratio, simply divide both numbers by 17.

85:51 becomes 5:3
5 0
3 years ago
Read 2 more answers
TWENTY POINTS IF ANSWERED CORRECTLY!!
lions [1.4K]
The first one is congruent because it is just turned 120degrees
3 0
3 years ago
Read 2 more answers
Use the diagram to complete the statement.
Elanso [62]
75° because they are alternate interior angles
3 0
3 years ago
Other questions:
  • The weight of the candy that Eric collected on Halloween was 1.3 kilograms. Timothy collected 1.8 kilograms of candy. How many m
    6·2 answers
  • Help me please WITH NUMBER 7
    6·1 answer
  • Please help with Parallel Lines and Transversals
    5·2 answers
  • If you had a set of numerical data, and you wanted to see individual data, what type of graph should you use?
    14·1 answer
  • The graph shows the vertical displacement y, in inches, that a weight bouncing from a spring world achieve if there were no fric
    7·1 answer
  • Which of these examples is an error of addition by one?
    6·1 answer
  • What times what equals 4
    15·2 answers
  • Using the graph below, what would the input (x-value) need to be for an output (y value) of 1?
    8·2 answers
  • 12<br> Fill in the blank: What's the length of the missing<br> side?<br> Ilype your answer
    10·1 answer
  • 3. Find the point of intersection of the graphs for each system. a) x - y = 1 and 3x - y = -1​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!