Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a word search program that searches an input data file for a word specified by the user. The program should display the number of

Write a word search program that searches an input data file for a word specified by the user. The program should display the number of times the word appears in the input data file. In addition, the program should count and display the number of characters in the input data file that are not vowels. Your program must do this by providing the following functions :

void processFile(ifstream inFile, string &word, int &wordCount, int &nonVowelCount) ;

void displayResult(string word, int wordCount, int nonVowelCount) ;

Both functions should be called from main(). No non-constant global variables should be used.

Test your program using the file provided paragraph.dat.

paragraph.dat

You'll generally read and write longer paragraphs in academic papers. However, too many long

paragraphs can provide readers with too much information to manage at one time. Readers

need planned pauses or breaks when reading long complex papers in order to understand your presented

ideas. Remember this writing mantra: "Give your readers a break!" or

"Good paragraphs give one pause".

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

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions