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
It is 10° at 4pm. The temperature drops
omeli [17]

Answer: At midnight It will be -10 degrees

Step-by-step explanation:

5 0
3 years ago
What is the area of a regular hexagon with a side length of 4 m? Enter your answer in the box. Round only your final answer to t
hichkok12 [17]
The area of a hexagon is 
A= a^2 (3√3)/2
we replace a with 4
A=41.57
5 0
3 years ago
Read 2 more answers
Convert to rectangular coordinates. use exact values. 7 sqrt 2, 135 degrees
Free_Kalibri [48]
Tan 135 = -1

so rectangular coordinates are (-7 sqrt2, 7 sqrt2)
7 0
3 years ago
What is the median of this set of data: 593, 588, 540, 434, 420, 398, 390, 375
Anna [14]
C. 427

The median is the middle number of all the data

Since there is an even number of data points the median is in between the middle two data points (434 and 420)

To find this: 434-420=14
14/2=7
434-7=427
420+7=427
8 0
3 years ago
Someone help me understand how to do this
Wewaii [24]

Answer:

6.7 cm

Step-by-step explanation:

To make use of the Law of Sines for finding b, you need to know the missing angle B. Since the sum of the angles of a triangle is 180°, you can find angle B as ...

B = 180° -82° -55° = 43°

Now, you put the numbers you know into the formula given and solve for b.

sin(A)/a = sin(B)/b

sin(55°)/(8 cm) = sin(43°)/b

Cross multiplying gives ...

b·sin(55°) = (8 cm)·sin(43°)

and dividing by the coefficient of b gives you ...

b = (8 cm)·sin(43°)/sin(55°) ≈ 6.7 cm

4 0
3 years ago
Read 2 more answers
Other questions:
  • I need advice!
    8·2 answers
  • Which value is included in the solution set for the inequality graphed on the number line?
    11·2 answers
  • Solve for n round to the tenths place 14/21.2= n\15
    5·1 answer
  • What type of symmetry is shown in this picture (point, line, or rotational)? Explain your answer and identify the line of symmet
    10·2 answers
  • PLZ help mw with this quston
    9·1 answer
  • The sum of 555 consecutive integers is 270270270. What is the second number in this sequence?
    12·1 answer
  • PLEASE ANSWER ASAP + BRAINLIEST!!!!
    7·1 answer
  • Solve the inequality -2z - 3 &lt; 5
    12·2 answers
  • Help me please!! Thanks:)
    8·2 answers
  • Evaluate 5k + 1 when: *
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!