subject

Write a C or C program E2p1.c(pp) that accepts one command line argument which is an integer n between 2 and 6 inclusive. the program should read from stdin as many english words as there are available. each word is promised to consist of from 3 to 20 lower case English characters and occupies a separate input line. use pthread to create n threads to count how many of these words contain "ea" as a subword. for example, the word peaceful contains "ea" as a subword but the word butterfly does not. The program should start the task of finding and counting matching and put words after all the input words have been received from the user in 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 words and the number of matching words found.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:20, mayaparness
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
image
Computers and Technology, 23.06.2019 06:00, hilarydodard7099
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 15:30, taapeters
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
You know the right answer?
Write a C or C program E2p1.c(pp) that accepts one command line argument which is an integer n betwe...

Questions in other subjects:

Konu
Mathematics, 27.01.2021 20:50