Question
Use comments throughout your program ,each function should be properly commented, Mention each argument type, purpose and function description . it is a simple c
Use comments throughout your program ,each function should be properly commented, Mention each argument type, purpose and function description .
it is a simple c program :
Write a C program that accepts the text from user and find how many words are not there in its dictionary. The implementation should be as follows:
The first process should run in an infinite loop accepting for the text as a user input.
The first process reads just one line at a time and then send the text to the second process.
The communication between the 1st process and the 2nd process should be via memory sharing.
The second process reads the text received from the first process and finds out:
-Number of words in the user text o Number of words not matched in its database
- Number of words matched in its database
The second process then needs to send the message to the user displaying these:
- Number of words in the user text
- Number of words not matched in its database
- Number of words matched in its database
For all the new words that the second process could not find in its database, it should send the message to the user to check whether those words are misspelled or not.
o Each new confirmed word should be added to its database
-There is no output database.txt , the information is kept in the program, and the dictionary starts empty.
two files which are one .c and .h
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started