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
Mashutka [201]
4 years ago
6

Int var1 = 0b0001; int var2 = 0b1111; int results1 = var1 & var2; int results2 = var1 | var2; int results3 = var1 ^ var2; in

t printit = results1 + results2 + results3; what are the values for results1, results2, results3 and printit after executing the code?
Mathematics
1 answer:
Afina-wow [57]4 years ago
8 0
<span>Int var1 = 0b0001;
int var2 = 0b1111;
int results1 = var1 & var2;
int results2 = var1 | var2;
int results3 = var1 ^ var2;
int printit = results1 + results2 + results3;
 
what are the values for results1, results2, results3 and printit after executing the code?
notes:
1. faster responses will be obtained if your code is presented line by line (in a file) before posting.
2. please specify language, many languages use the same syntax but could have differences in interpretation
-------------------------------------------------------------------------------

Assuming Java as the language.  C is similar.
</span><span><span>& bitwise AND &
^ </span><span>bitwise exclusive OR
</span><span>| bitwise inclusive OR

So 
results1=var1&var2=0b0001&0b1111=0b0001
results2=var1|var2=0b0001&0b1111=0b1111
results3=var1^var2=0b0001&0b1111=0b1110
printit=results1+results2+results3=0b0001+0b1111+0b1110
=0b10000+0b1110
=0b11110   

Note: by default, int has 4 signed bytes, ranging from decimal -2147483648 to +2147483647
</span></span>
You might be interested in
ah im having a hard time with this someone answer plz no one is answering the question exept bots trying to scam me.an online re
Archy [21]

Answer:

26 pounds

Step-by-step explanation:

let x be the number of pounds.

then

5.99+0.65x=22.89

0.65 x=22.89-5.99=16.90

x=\frac{16.90}{0.65}=\frac{1690}{65}=26\\

5 0
3 years ago
Which fraction has the greatest value? 5/6 1/6 - 1/6 - 5/6
Serggg [28]

5/6 that is the answer

best of luck my friend

8 0
3 years ago
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
LuckyWell [14K]

Answer:

A. 38

Step-by-step explanation:

180- 114 = 66

66 + 2x + x = 180

66 + 3x = 180

-66 -66

3x = 114

— —-

3 3

x = 38

7 0
3 years ago
Read 2 more answers
A parallelogram has a base of 12 meters and a height of 1.5 meters. What is its area? ​
rusak2 [61]

Answer:

18

Step-by-step explanation:

12×1.5=18

its the same formula with rectangle cz if you combine both right angled triangle side its become a rectangle

4 0
3 years ago
Convert: 15°C to °F<br><br> -9<br> -31<br> 59<br> 164
Anton [14]
15 is 59
-9 is 15.8 so 16
-31 is 28.8 so 29
59 is 138.2
164 is  327.2


6 0
3 years ago
Other questions:
  • (03.06 LC) The function f(x) = −4(x+1)2+21-4(x+1)2+21 has been rewritten using the completing-the-square method. The function g(
    5·1 answer
  • Which property explains why these two expressions are equal?<br><br> (W +2/3)+5=W+(2/3+5)
    13·1 answer
  • If the equation of a circle is (х-2)2 + (у- 6)2 = 4, it passes through point
    13·2 answers
  • Whats a linear function
    10·1 answer
  • Help pls fast and give me the steps<br> -15a-19-35=-84
    9·1 answer
  • In ΔFGH, the measure of ∠H=90°, the measure of ∠F=25°, and GH = 5.9 feet. Find the length of FG to the nearest tenth of a foot.
    9·1 answer
  • Someone Plsssssss help me with this please answer as many as you can!!!!!!!
    6·1 answer
  • Please help? Thank you
    15·1 answer
  • A vehicle rental company charges $35 to rent a moving van plus $.40 for each mile traveled. Which expression represents the tota
    6·2 answers
  • wo neighboring homeowners, , 2, simultaneously choose how many hours to spend maintaining a beautiful lawn. The average benefit
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!