<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>
Answer:
C if im correct
Step-by-step explanation:
I have a similar problem
For the given triangle, the cosine of angle A equals
.
Step-by-step explanation:
Step 1; In the given triangle, the opposite side has a length of 9 units, the adjacent side has a length of 3√3 units while the hypotenuse of the triangle measures 6√3 units. To calculate the cosine of angle A we divide the adjacent side by the hypotenuse side.
cos A =
.
Step 2; Length of the adjacent side = 3√3 units.
Length of the hypotenuse side = 6√3 units.
cos A = 3√3 / 6√3
cos A =
.
To check we also have A = 60° and cos 60° =
.
Answer: Yes, it is less than, as the value of the first equation is 14, while the second equation is 100.8
Step-by-step explanation:
1.7y + 37 = 14...........equation 1
9.3y - 25 = ?............equation 2
Find the value of y by subtracting 37 from both sides of equation 1
1.7y +37 -37 = 14 - 37
1.7y = -23
Divide both sides by 1.7
y = 13.53
Insert the value of y into equation 2
9.3 (13.53) - 25
125.83 -25
=100.8