1 0 0 1 1 1 1 0
0 * 2^{0} + 1 * 2^{1} + 1 * 2^{2} + 1 * 2^{3} + 1 * 2^{4} + 0 * 2^{5} + 0 * 2^{6} = 30
The sign digit is a 1, so the entire number is negative, which gives -30.
<span>Which option will you use to expose your presentation to the audience?
</span><span>B)Slide Show</span>
Bit array or bitmap index
Answer:
The answer is variables, constants, expressions and funcions.
Answer:
The C code is explained below. The highlighted code represents the "your solution goes here" section
Explanation:
//Header file section
#include <stdio.h>
//Program begins with a main method
int main(void)
{
//Declare the integer variables
int userNum1;
int userNum2;
//Initialized the values to the variables
userNum1 = 1;
userNum2 = 14;
// If userNum1 is less than 0, then print "userNum1 is negative".
// '\n' represents end with newline
if (userNum1<0)
{
printf("userNum1 is negative. \n");
}
//If userNum2 is greater than 10, then convert userNum2 to 0.
//Otherwise, print "userNum2 is less than or equal to 10"
if (userNum2>10)
{
userNum2 = 0;
}
else
{
printf("userNum2 is less than or equal to 10.");
//'\n' represents end with newline
printf("\n");
}
//Print userNum2 value
printf("userNum2 is %d. \n", userNum2);
return 0;
}