Question: In C++ Programming Task Write a program pronounce.cpp that Lets the user input a word (let's call the input word W). If the word is

In C++

In C++ Programming Task Write a program pronounce.cpp that Lets the userinput a word (let's call the input word W). If the word

Programming Task Write a program pronounce.cpp that Lets the user input a word (let's call the input word W). If the word is not found in the dictionary, print "Not found". Otherwise, report: o Pronunciation the pronunciation of the word W (as given in the dictionary) Identical : other words from the dictionary with the same pronunciation as w, o Add phoneme words that can be obtained from W by adding one phoneme, o Remove phoneme words that can be obtained from Wby removing one phoneme, o Replace phoneme words that can be obtained from Wby replacing one phoneme. When listing words, include all words from the dictionary that meet the criteria, the order of listed words should be the same as they appear in the dictionary Your program should expect that the dictionary file cmudict.0.7a is located in the current working directory. User input should be case-insensitive (accepting donut, DONUT, DOnUt , etc.) Please, don't make complex user interface that allows multiple queries. The program should just ask for one word, report the answer, and exit. See examples below. You are allowed to use only the constructs of the language that were mentioned in lecture slides and covered in class. For strings, you can use only the operations mentioned in class. Programming Task Write a program pronounce.cpp that Lets the user input a word (let's call the input word W). If the word is not found in the dictionary, print "Not found". Otherwise, report: o Pronunciation the pronunciation of the word W (as given in the dictionary) Identical : other words from the dictionary with the same pronunciation as w, o Add phoneme words that can be obtained from W by adding one phoneme, o Remove phoneme words that can be obtained from Wby removing one phoneme, o Replace phoneme words that can be obtained from Wby replacing one phoneme. When listing words, include all words from the dictionary that meet the criteria, the order of listed words should be the same as they appear in the dictionary Your program should expect that the dictionary file cmudict.0.7a is located in the current working directory. User input should be case-insensitive (accepting donut, DONUT, DOnUt , etc.) Please, don't make complex user interface that allows multiple queries. The program should just ask for one word, report the answer, and exit. See examples below. You are allowed to use only the constructs of the language that were mentioned in lecture slides and covered in class. For strings, you can use only the operations mentioned in class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!