Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago