3. Using Pool() do the following: 3.1. The pool must have 2 processes, each process will pass two parameters to a search function, these parameters must be the name of the file and a word to search for, these two parameters must be entered by the user and must be different from the process to another. 3.2. The Search function must search for the word in the file and if the word is found then find out the number of occurrences for this word otherwise return that the word doesn't appear in the file. 3.3. You need to verify that the file the user inserted is actually a file and it exists in the system.
3. Using Pool() do the following: 3.1. The pool must have 2 processes, each process will pass two parameters to a search function, these parameters must be the name of the file and a word to search for, these two parameters must be entered by the user and must be different from the process to another. 3.2. The Search function must search for the word in the file and if the word is found then find out the number of occurrences for this word otherwise return that the word doesn't appear in the file. 3.3. You need to verify that the file the user inserted is actually a file and it exists in the system.
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 1GZ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,