akosiraff

Download: Count Letter Vowels Consonant Lines C++

Jan 30th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/count-letter-vowels-consonant-lines-c/
  3. Write a program that reads a text file selected by the user and
  4. prints a report on the screen indicating
  5. how many lines of text were read, how many words were read, how
  6. many total characters were read,
  7. how many vowels were read, how many consonants were read, and how
  8. many whitespace characters
  9. were read. The user must be able to enter the name of the file.
  10. Allow the user to reenter the filename
  11. whenever the file specified cannot be opened. Assume that vowels
  12. are the uppercase or lowercase
  13. letters a, e, i, o, and u. For the purposes of this program a
  14. word is a sequence of one or more letters or
  15. digits followed by any other character than a letter or digit.
  16. For example, here is the output produced by
  17. a program that satisfies the requirements of this assignment when
  18. run on the file named “input1.txt”.
  19. input1.txt contains the following content:
  20. Peter Peter pumpkin eater,
  21. Had a wife and could not keep her!
  22. He put her in a pumpkin shell,
  23. And there he kept her very well!
  24. —————————————————————
  25. your program should run something like this:
  26. Enter input file name: input1.txt
  27. The 6 lines of text contained:
  28. 26 words
  29. 127 characters
  30. 36 vowels
  31. 60 consonants
  32. 27 whitespace characters
  33.  
  34. Download: http://solutionzip.com/downloads/count-letter-vowels-consonant-lines-c/
Add Comment
Please, Sign In to add comment