Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with this c program, a file can be used as the database of words. Task 2: [60 Points] Write a simple C program

Please help with this c program, a file can be used as the database of words.

image text in transcribedimage text in transcribed

Task 2: [60 Points] Write a simple 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: o Number of words in the user text 0 Number of words not matched in its database O Number of words matched in its database The second process then needs to send the message to the user displaying these: O Number of words in the user text o Number of words not matched in its database o 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. Task 2: [60 Points] Write a simple 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: o Number of words in the user text 0 Number of words not matched in its database O Number of words matched in its database The second process then needs to send the message to the user displaying these: O Number of words in the user text o Number of words not matched in its database o 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

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

Step: 3

blur-text-image

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

=+j on to staff their operations in the global marketplace.

Answered: 1 week ago