Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can you please give me some advice on how to go about writing a c++ program to d

ID: 3922785 • Letter: C

Question

Can you please give me some advice on how to go about writing a c++ program to do this, I am quite lost...Write a program named hw5pr3.cpp which repeatedly reads a word from the keyboard and then checks to see if that word is in the file /usr/share/dict/words, the dictionary on build.tamu.edu. A sample run should look like this: Enter word: exquisite That word is in my dictionary Enter word: antidisestablishmentarianism That word is in my dictionary Enter word: potatos That word is not in my dictionary

Explanation / Answer

The logic to program this problem is very easy.

You just need to do the following:

1. Open the file in which the data is stored.

2. Make a while(true) loop this will repeatedly ask you to enter the keyword and check if this keyword exist in the opened file or not.