Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ===========================================================================
- // VowelCount.cpp : A program that will return a count of vowels.
- //
- // Computer Scientist: Jake Lorimer
- // Program Name: VowelCount
- // Version: 1.0.0
- // Date: 23 October 2017
- //
- // Inputs: The program takes as many letters as the user wants to give.
- // Outputs: The program outputs the number of vowels.
- // Algorithm: The program will use a function to keep count of vowels.
- // ===========================================================================
- #include "stdafx.h"
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int IsVowel(char b) {
- if (b == 'a' || b == 'e' || b == 'i' || b == 'o' || b == 'u') {
- return true;
- }
- else {
- return false;
- }
- }
- int main() {
- cout << "Enter a letter. ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement