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
GIVING BRAINLIEST!!!!!!<br><br><br> 32+4X(16 x 1/2)-2<br><br> show your work
belka [17]
The answer should be 62
7 0
2 years ago
Read 2 more answers
Consider the functions. F(x)=(x+1)2-4 and g(x)=-4|x+1| which statement compares the range of the functions?
Andreyy89

Answer:

<h2>        The fourth</h2>

Step-by-step explanation:

Vertex of f is (-1, -4) so its range is limited to y≥-4

|x+1| is always ≥0 therefore -|x+1| is always ≤0 {4 is insignificant to this - slope doesn't mean in range} so its range is limited to y≤0

3 0
3 years ago
A flatbed truck is being loaded with steel girders weighing 1825 lbs each. How much will 15 of these girders weigh, combined?
saw5 [17]
I think I know how it's done!

You need to multiply 1825 by 15. You may want to show the work in this one.

1825•15 = 27,375

Thus, the truck will be loaded with 27,375 lbs of steel girders.

Hope this helps you succeed!
6 0
3 years ago
Find the value of each expression.<br> 6b2 – 5 if b = 3
snow_tiger [21]
The answer should be 31, if I’m doing this correctly.
6(3)2-5 (multiply 6 and 3, you get 18)
18(2)-5 (multiply 18 and 2, you get 36)
36-5 (subtract 36 and 5)
31
3 0
2 years ago
Read 2 more answers
There are 20 players on a soccer team. From them, a captain and an alternate captain have to be chosen. How many possibilities a
tester [92]

Answer:

190 possibilities.

Step-by-step explanation:

The problem is called 20 choose 2, given by the formula for combinations

C(20,2) = 20! / (2! (20-2)!) = 190

alternatively, we can reason it this way:

there are 20 choices to choose a captain and 19 choices for an alternate captain for a total of 380 ways.

However, there are 20 choices to choose an alternate captain and 19 choices for a captain for a total of 380 ways.

Since we are essentially double counting every choice of the posts, we need to divide 380 by 2 to get 190 ways.

3 0
3 years ago
Other questions:
  • 1. Evaluate a/b + c^2d for a = 6,b=3,c=4,and d=5
    10·1 answer
  • What is the simplified equation of y=sin(90-x)-sin(x-90)?????<br>please explain why.
    14·1 answer
  • Divide (16x6 − 12x4 + 4x2) by 4x2.
    5·1 answer
  • What's the answer for number 2??
    6·1 answer
  • Whats the answer please
    7·1 answer
  • What is the area of a sector with a central angle of 210 degrees and a diameter of 4.6m?
    9·1 answer
  • What is the estimated sum of an orange that costs $0.69 and a hot pepper that costs $0.15 if their prices are rounded to the nea
    11·1 answer
  • A store owner determined 80% of customers bought a drink and 30% of customers bought a snack. If the store sold 120 snacks that
    13·1 answer
  • I don’t understand what it means by find the mid points someone pls help I’m so behind
    7·1 answer
  • Using the data above, how many people would be expected to live in Japan if the proportion of people to square miles were the sa
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!