Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

From Zero To Data Hero With Chatgpt

Authors: Andrew Wu

1st Edition

B0CQRJPXD9, 979-8989523009

More Books

Students also viewed these Databases questions