To convert binary fraction to decimal fraction, we first write the given
.1011 (base 2)
The process of conversion is to break down to its decimal constituent,
.1011 (base 2) = (1*2^-1)+(0*2^-2)+(1*2^-3)+(1*2^-4)
.1011 (base 2) = 0.5 + 0 + 0.125 + 0.0625
.1011 (base 2) = 0.6875 (base 10)
<em>ANSWER: 0.6875 (base 10)</em>
Answer:
#include <stdio.h>
int hexToDec(const int hexNum[]){
int result = 0, prod = 1;
for(int i = 3;i>=0;i-=1){
result += (prod*hexNum[i]);
prod = prod * 16;
}
return result;
}
int main()
{
int hexNum[4], i;
char s[5], ch;
printf("Enter hexa decimal value: ");
scanf("%s",s);
for(i = 0;i<4;i++){
ch = s[i];
if(ch>='0' && ch<='9'){
hexNum[i] = ch-'0';
}
else if((ch>='a' && ch<='f') || (ch>='A' && ch<='F')){
if(ch=='A' || ch=='a'){
hexNum[i] = 10;
}
else if(ch=='B' || ch=='b'){
hexNum[i] = 11;
}
else if(ch=='C' || ch=='c'){
hexNum[i] = 12;
}
else if(ch=='D' || ch=='d'){
hexNum[i] = 13;
}
else if(ch=='E' || ch=='e'){
hexNum[i] = 14;
}
else{
hexNum[i] = 15;
}
}
}
printf("%d",hexToDec(hexNum));
return 0;
}
Explanation:
Answer:
<u>Conditional</u> formatting is automatically updated if you change data in the worksheet.
Explanation:
Conditional formatting can be described as a tool that allows users to format a particular cell or a group of cells. The formatting also changes for any data being changed in the sheet.
A particular cell can have up to three format conditions and these conditions will be applied automatically to any changes entered in the cell. The conditional formatting also has the option to highlight the important cells.
Machine Language is a language used to communicate with the Central Processing Unit (also known as the CPU)