Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ For this project, to make the task easier, your program should ignore all words that contain non-alphabetic characters, and also ignore all alternative pronunciations,

C++

For this project, to make the task easier, your program should ignore all words that contain non-alphabetic characters, and also ignore all alternative pronunciations, The only non-letter character that is allowed in a word is apostrophe '.

We are going to use The CMU Pronouncing Dictionary( http://www.speech.cs.cmu.edu/cgi-bin/cmudict ) as our reference. It is available as a simply formatted plain text file, a direct link to it .0.7a (http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict.0.7a). It is required to utilize this file in the program (open, read it )

So, your program should ignore entries like:

PROGRESS(1) P R AH0 G R EH1 S < ignore PROGRESS(2) P R OW0 G R EH1 S < ignore PUSH-UP P UH1 SH AH2 P < ignore PUSH-UPS P UH1 SH AH2 P S < ignore %PERCENT P ER0 S EH1 N T < ignore &ERSAND AE1 M P ER0 S AE2 N D < ignore 

However, the following entries are considered good:

PROGRAM P R OW1 G R AE2 M < good PROGRAM'S P R OW1 G R AE2 M Z < good PROGRAMS' P R OW1 G R AE2 M Z < good 'BOUT B AW1 T < good

Please use basic constructs. Nothing complex should be used.

Thank you

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions