Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

word.txt contains the words below each on a new line in alphabetical order an be coals colliers I Gregory mean well RomeoandJuliet.txt contains Gregory, on

word.txt contains the words below each on a new line in alphabetical order

an

be

coals

colliers

I

Gregory

mean

well

RomeoandJuliet.txt contains

Gregory, on my word well not carry coals. No, for then we should be colliers. I mean, an we be in choler, well draw.

  1. You will need to create TWO C programs (.c) . And create ONE header file (.h).
  2. Please comment all the files.
  3. First program- You will need to insert the words in word.txt into a dictionary trie. This trie should allow a caller to insert words to a trie to build a dictionary and search the trie to find if a given word matches (case insensitive search) any stored word in the trie.
  • Basically put word.txt in a dictionary trie
  • Take into account the 26 letters and apostrophe ( ). It is also case insensitive.
  1. Second program- Next test your dictionary trie implementation by building a dictionary trie from a source dictionary text file and then use the dictionary trie to perform spell checks on all words read from another text file and print out all misspelled words there.
  2. Basically, in this code you will use check to see if the words in RomeandJuliet.txt is spelled the same as in word.txt. If a word in RomeandJuliet.txt is not in word.txt then it is considered misspelled.
  • This code should contain the main(int argc, char **argv)
  1. Each misspelled word should be on a new line.
  2. Make a header file!!
  3. Please read in the two .txt files!!!
  4. Print the misspelled words to standard out. You can capture standard out to a file using the > and a filename. Please show how to do this in command line. The misspelled words should be EXACTLY how they were in the Romeo and Juliet book.
  5. Misspelled words are

on

my

word

not

carry

No

for

then

we

should

we

in

choler

draw

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago