C programming: 1. Write a program called wcount.c that counts all the words in a given file 2. The name of the file to count the words in will be passed on the command line 3. For this problem we will define a word as a series of 1 or more non-whitespace characters 4. Use isspace to determine if a character is white space or not Examples: Assume we have file named fun.txt that contains the following: Computer sciences classes are great! Even though I spend all my time doing homework :( 1../wcount fun.txt There are 15 word(s). Solution Program: #include<stdint.h> #include<conio.h> #include<stdio.h> void main(int argc, char argv[]) { char *InputFileName; FILE *InputFile; char File[10000], Line[1000], Word[100]; char c; char PrevChar=\'\\0\'; int Words=0; char option; if( argc == 2 ) { InputFileName = argv[1]; } InputFile = fopen(InputFileName,\"r\"); if(InputFile!=NULL) { while(c=fgetc(InputFile)) { if((c==\' \' || c==\'\\t\') && (PrevChar!=\' \' && PrevChar !=\'\\t\')) Words++; } fclose(InputFile); } else { if(InputFile == NULL) { printf(\"Erro occured while opening the Input File\ \"); } } printf(\"\ %d Words\",++Words); getch(); } .