Answer: -26
Explanation:
We have: 1 1 1 0 0 1 0 1
Since it’s one’s complement representation, then we check the very first digit to state if the number is negative or positive. Since the very first digit to the left is 1, then the number will be negative.
When it is negative, we now flip the bits, so that we get:
0 0 0 1 1 0 1 0
Notice we just turn the 1’s into 0’s and vice versa.
We now convert this binary into decimal:
We assign to each digit the corresponding power of 2.
See it in a table:
Then multiplying each digit by its corresponding power of 2 and then adding the results, we get:
We get:
Since we stated that the number is negative, then, the final result is: -26
Void printtictactoe(char horizchar, char vertchar)
{
int i,j;
int scale = 5;
for(j=0; j<3; j++) {
for (i = 0; i < scale; i++)
printf("%*c%*c\n", scale+1, vertchar, scale+1, vertchar);
if (j < 2)
for (i = 0; i < (scale * 3)+2; i++)
printf("%c", horizchar);
printf("\n");
}
}
I left out many braces because of the layout issues with this website. There is a scale factor you can set to the desired size of the board cells!
Answer:
Ada Lovelace was the first computer programmer
It could be that your computer is simply getting older and more worn out, I suggest downloading MalwareBytes, it's a free anti-virus software that I use personally.