Answer:
Similar to a computer, the human brain is like a storage unit of information and operator for the human body. Though the brain can hold more info than a computer, both are used to complete various tasks.
Explanation:
I would prefer a cotton company because we're all can make cloths.
Answer:
A power supply consists of wires connecting the cpu and other parts of the computer. The data bus transfers data between CPU and memory unit.
Explanation:
Answer:
Corresponding Binary numbers are as following:
A4693FBC=10100100011010010011111110111100.
B697C7A1
= 10110110100101111100011110100001.
Explanation:
A single digit hexadecimal number is a 4 bit binary number.So for each hexadecimal bit we have to find the corresponding 4 bit binary number.
A=1010
4=0100
6=0110
9=1001
3=0011
F=1111
B=1011
C=1100
and write them in the same sequence of their hexadecimal number.
A4693FBC=10100100011010010011111110111100.
B=1011
6=0110
9=1001
7=0111
C=1100
7=0111
A=1010
1=0001
B697C7A1
= 10110110100101111100011110100001.
Answer:
See explaination
Explanation:
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE * file_object;
char file_name[100];
char ch;
int characters=0, words=0;
printf("Enter source file name: ");
scanf("%s", file_name); //asking user to enter the file name
file_object = fopen(file_name, "r"); //open file in read mode
if (file_object == NULL)
{
printf("\nUnable to open file.file not exist\n"); //check if the file is present or not
}
while ((ch = fgetc(file_object)) != EOF) //read each character till the end of the file
{
if (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\0') //if character is space or tab or new line or null character increment word count
words++;
else
characters++; //else increment character count this assures that there is no spaces count
}
printf("The file story.txt has the following Statistics:\n"); //finally print the final statistics
if (characters > 0)
{
printf("Words: %d\n", words+1); //for last word purpose just increment the count of words
printf("Characters (no spaces): %d\n", characters);
}
fclose(file_object); //close the file object
return 0;
}