Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with this c program. There is no database, the information is kept in the program, and the dictionary starts empty. Task 2: [60

Please help with this c program.

There is no database, the information is kept in the program, and the dictionary starts empty.

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

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions