<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>
If he made $640 last year, and this year he made 15% more than that, we set up the problem like this:
640 * .15 = 96
640 + 96 = 736
This year, he made $736
A) the equation accuretly models this scenario because Emanuel has a total of 48 cards. He bought some (X) and his aunt gave him 18. In order to find the number of cards he bought you set the number of cards he bought and the number of cards he got from his aunt equal to the number of cards he has.
B) 48= X + 18
Subtract 18 over
30=X
He bought 30 cards from the store.
48+ 30+18
The numbers less than 5 or even are {1, 2, 3, 4, 6}. This is 5 of the 6 possible numbers.
The probability of getting one of these on a single roll of a single die is 5/6.
Answer:
the width is 470 ft and the length is 730 ft.
Step-by-step explanation:
Perimeter of a flag is 2l+2w
Let w = width
Let l = w+260
2(w+260)+2w=2,400
2w+520+2w=2400
4w+520=2400
4w=1880
w=470
So, the length would be 470+260, or 730
Therefore, the width is 470 ft and the length is 730 ft.
I hope this helped and have a good rest of your day!