subject
Computers and Technology, 05.11.2019 06:31 gafran

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 no non-constant global variables should be used.
test your program using the file provided "paragraph. dat". (name the file paragraph. dat)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:50
Which are steps taken to diagnose a computer problem? a) reproducing the problem and using error codes b) reproducing the problem and troubleshooting c) using error codes and troubleshooting d) using error codes and stepping functions
Answers: 1
question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 22.06.2019 20:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What does 21 pilots middle aged name as a band 15 years prior to them naming their band 21 pilots?
Answers: 1
You know the right answer?
Write a word search program that searches an input data file for a word specified by the user. the p...
Questions
question
Social Studies, 19.03.2020 05:05
question
Mathematics, 19.03.2020 05:06
question
Mathematics, 19.03.2020 05:06
question
Advanced Placement (AP), 19.03.2020 05:06
Questions on the website: 13722363