question, I WILL GIVE ATHUMBS DOWN REGARDLESS if it is not right.thank you!
this is systems software, complete in C. DON'T
COPY ANOTHER ANSWER OFF OF answers,
DO IT ON YOUR OWN. will
give thumbs up if you answer fully and
correctly! only answer if you know how to
properly answer! the instructions for the code
(within code) are attached below. The output
needs to look like the red colored words within
the picture. It needs to look EXACTLY LIKE
THAT. Create a new code that creates this
output (red colored words) and i will give
thumbs up. dont answer if this is your last
question before getting fired, or if you dont
understand the question, I WILL GIVE A
THUMBS DOWN REGARDLESS if it is not right.
thank you!
1. (10 pts) Write a C program E2p1.c that accepts one command line argument which is an integer n between 2 and 6 inclusive. The program should read from stdin 1+N+M lines of information. The first line consists of two integers N and M representing the number of dictionary words and article words to be input on the following lines respectively (assume N≤3000 and M≤10000). Each of the following N+M lines consists of a word from a set of N distinct words in a dictionary and a list of M words in an article (one word per line). Each word is assumed to consist of no more than 20 lower case English characters. Use pthread to create n threads to count how many of the M article words are misspelled. If an article word does not appear as one of the N dictionary words, then it is considered misspelled. Otherwise, it is considered correctly spelled. The program should start the task of finding and counting misspelled article words after all the input words have been received from the user and this task should be divided among the created n threads as evenly as possible. In the end the program should print the number of input dictionary and article words and the number of misspelled article words found. A sample run can look like the following (note the number of words can be arbitrary and the shown numbers are just an example): [kwang@computer] [~/temp] $//E2p1 6 1200 480 [user inputs 1200 dictionary words and then 480 article words here, one word per line. Ctrl+D to terminate the inputs.] Launching 6 threads to spell-check an article of 480 words against a dictionary of 1200 words: 17 among the 480 article words are found to be misspelled.
this is systems software, complete in C. DON'TCOPY ANOTHER ANSWER OFF OF answers,DO IT ON YOUR OWN. willgive thumbs up if you answer fully andcorrectly! only answer if you know how toproperly answer! the instructions for the code(within code) are attached below. The outputneeds to look like the red colored words withinthe picture. It needs to look EXACTLY LIKETHAT. Create a new code that creates thisoutput (red colored words) and i will givethumbs up. dont answer if this is your lastquestion before getting fired, or if you dontunderstand the 1. (10 pts) Write a C program E2p1.c that accepts one command line argument which is an integer n between 2 and 6 inclus
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am