Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. // ===========================================================================
  2. // VowelCount.cpp : A program that will return a count of vowels.
  3. //
  4. // Computer Scientist: Jake Lorimer
  5. // Program Name: VowelCount
  6. // Version: 1.0.0
  7. // Date: 23 October 2017
  8. //
  9. // Inputs: The program takes as many letters as the user wants to give.
  10. // Outputs: The program outputs the number of vowels.
  11. // Algorithm: The program will use a function to keep count of vowels.
  12. // ===========================================================================
  13.  
  14. #include "stdafx.h"
  15. #include <iostream>
  16. #include <iomanip>
  17.  
  18. using namespace std;
  19.  
  20. int IsVowel(char b) {
  21. if (b == 'a' || b == 'e' || b == 'i' || b == 'o' || b == 'u') {
  22. return true;
  23. }
  24. else {
  25. return false;
  26. }
  27. }
  28.  
  29. int main() {
  30. cout << "Enter a letter. ";
  31.  
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement