<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:
do you want the cost of groceries because that would be 64 and 65.6 with tax
Step-by-step explanation:
all you do is 1.60 divided by 2.5
This is interesting. You cannot turn 1/4 or 2/4 or 3/4 into a mixed number because they are proper fractions. Perhaps ask your teacher about it? Or just rewrite the fractions as is and state they are in proper form.
Same with 7. They are each simplified already. I would suggest asking your teacher.
<span>the first one is from walmart which is 5.99$ the other store sells it for 3.49 which one is better to buy
</span>