The Vowel Checker is a simple C++ program that tests whether given characters are vowels or not. It's designed to help beginners understand basic programming concepts such as functions, loops, and conditional statements in C++.
- Character Testing: Determines if specific characters are vowels.
- Supports Multiple Characters: Checks a set list of characters and prints results for each.
- Case Insensitivity: Works with both uppercase and lowercase characters.
To run the Vowel Checker, follow these steps:
Ensure you have a C++ compiler installed on your computer, such as GCC, Clang, or MSVC.
-
Clone the repository:
git clone https://github.com/yourusername/vowel-checker.git
-
Navigate to the directory:
- On Windows:
- Open Command Prompt and change directory:
cd path\to\vowel-checker
- Open Command Prompt and change directory:
- On macOS and Linux:
- Open Terminal and change directory:
cd path/to/vowel-checker
- Open Terminal and change directory:
- On Windows:
Compile the program using a C++ compiler. For example, with GCC:
g++ main.cpp -o vowel-checker
After compiling, run the program using:
./vowel-checker
The program will automatically print whether each predefined character is a vowel.
The program includes a predefined list of characters and uses a loop to pass each character to the isVowel
function. This function checks if the character is a vowel ('a', 'e', 'i', 'o', 'u') by comparing it in both its uppercase and lowercase forms. The results are then printed to the console.
Contributions to this project are welcome. Enhancements could include:
- Expanding the list of testable characters.
- Adding a user input feature to allow live testing of any character.
- Implementing a graphical user interface for more interactive use.
This project is licensed under the CC0 1.0 Universal License - see the LICENSE file for details.
The Vowel Checker was created as an educational tool to demonstrate basic programming concepts in C++. The project covers:
- Functions: How to create and use functions.
- Control Structures: Utilizing loops and conditionals to process data.
- Character Handling: Working with character data types and functions in C++.
This program provides a practical application of these concepts, helping new programmers see how basic elements of C++ work together in a real-world application.