Question: I need a second pair of eye for this programming. I just make sure I'm heading thr right direction. This for a c programming class.

I need a second pair of eye for this programming. I just make sure I'm heading thr right direction. This for a c programming class.

This is my assignment:

Most larger companies have software programs that scan through submitted resumes and select the best resumes as possible interview clients.

The program will assume that there is a text file representing an applicants resume as a text file. The resume text document needs to be placed in the SRC folder of the project. You will make this document up.

You will create another separate text file which will also be placed in the SRC folder. This file will contain a bunch of keywords separated by commas. No keyword will contain a comma. You are to count the total times the keywords are found in the fake resume.

Your program will simply output to the screen the count of keywords with in the document that match the keywords.

In real life the higher the number the higher the chance that the person (the owner of the resume) will get an interview.

YOU CANNOT

  • Use global variables, in this or any program ever.

  • Use goto statement(s) , in this or any program ever.

My code:

#include #include

int main(){

FILE *fp, *fp1; int i;

char line[100]; char words[100][50];

fp = fopen("keyword.txt","r"); if (fp == NULL){ printf("Error opening file "); return 0; } int count = 0; while(fgets(line,100,fp)!=NULL){ char *ch = strtok(line,","); while(ch!= NULL){ strcpy(words[count],ch); count++; ch = strtok(NULL,","); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!