This is an HTML page that uses JavaScript to determine if a year is a leap year.
Spec | Input | Output |
---|---|---|
Program Gathers User Input | "hello world" | "hello world" |
Program recognizes Non-alphabetical characters and ignores | 3 | 3 |
Program recognizes vowels | "walk" | "a" |
Program recognizes consonants | walk | w,l,k |
Program recognizes y as a consonant | year | y,r |
Program recognizes 1st character of a word | walk | w |
Program recognizes vowel as first character of a word | apple | a |
Program recognizes beginning consecutive consonants | call | c |
Program recognizes qu as one consonant | quest/squeal | squ/qu |
Program adds "ay" to single-letter words beginning with a vowel | i | iay |
Program adds "way" to the end of words beginning with a vowel | eat | eatway |
Program moves consonants at the beginning of a word to the end of the word | call | allc |
Program adds "ay" to the end of moved consonants | call | allcay |
Program moves all consecutive consonants at the beginning of a word to the end of the word and adds "ay" | knight | ightknay |
Program moves y at the beginning of a word and adds "ay" | yell | ellyay |
Program moves first consecutive first consonants that contain "qu" to the end of the word and adds "ay" | quality | alityquay |
Program repeats above behaviors for all words in a string | my name is bob | ymay amenay isway obbay |
Program recognizes capitalization | HeLlo | eLloHay |
- Clone repository to your machine from GitHub
- Open index.html in a web browser (Chrome)
No known issues.
Email?
- HTML
- CSS
- JavaScript
- jQuery-3.2.1
Not needed