You are going to write a program that will Ask the user to enter a string. You will then go through the string and count how many occurrences of each of the following: Letters Vowels Consonants Digits Spaces Other Total Length
Output should looks something like the following:
The phrase Yes! Its my birthday, I am 18 now. I can vote! Contains 30 letters, 11 of which are vowels and 19 consonants. There are 2 digits, 11 spaces and 5 others. The total length of the string is 48 characters.
Notice All sentences start with capitals and end with punctuation. The quote is printed out with surrounded by the . To do this you would do something like this System.out.println( \ + quote + \); Assuming quote is a string that contains the user entered quote.
Remember to INDENT properly, COMMENT your code and use DESCRIPTIVE variable names. Before you begin typing your code you must turn in to me a pseudocode solution for your program. An example of what part of your pseudocode might look like: Run a loop that will examine each character in the user entered quote. If the current character is a letter increment the letter counter by 1 Then test if the letter is a vowel, if it is increment the vowel counter by 1, otherwise increment the consonant counter by 1.
If the character isnt a letter then test if it is a digit. If it is a digit then increment
We're more than happy to *help you with* (note - this is not the same as *do for you*) your coursework if you ask questions about what you don't know how to do.
The coursework looks pretty straight-forward. What's the problem?