I had previously posted assignments here and you guys had helped me out tremendously, and I really think because of some people here, my grade has gone up substantially (I got a 61 on the first test, 77 on the 2nd, and 85 on the 3rd), and I have been getting the hang of it a lot more lately. But this last assignment of the semester has me a bit perplexed, as it deals with arrays, and we have only talked about them for one class, so I feel its sort of a rush job. So if someone could steer me in the right direction itd be appreciated. I am not looking for people to do my assignment in any way, as I do actually want to learn this stuff. But please be patient, as I am still new to Java, and sometimes have trouble with the programming jargon.
Here is the assignment and thanks in advance!
Write a program which prompts the user to input a series of characters, one at a time. The program will stop prompting the user for characters once the user enters an exclamation point ('!').
Using an array, count the number of occurrences of each letter (regardless of whether it is upper or lower case (so for example, an 'A' and an 'a' both count for the first letter of the alphabet). In a separate counter, also count the total number of "other" characters ('.', '?', ' ', '2', etc.). The final exclamation point does not count.
Print out the count for each letter found (but not for those which where not found!)
Print the count of the non-letter characters.
List the characters that were not found (e.g. "The following letters were not found: t, z, c.").
By inspecting the array, print out the total number of all of the vowels, and the total number of all of the consonants.
Finally, print out which letter was found the most times. (Note there may be more than one letter which has the maximum count attached to it.) Also, print out which letter (or letters) was found the least number of times, but make certain to exclude letters which were not found at all.
Here is the assignment and thanks in advance!
Write a program which prompts the user to input a series of characters, one at a time. The program will stop prompting the user for characters once the user enters an exclamation point ('!').
Using an array, count the number of occurrences of each letter (regardless of whether it is upper or lower case (so for example, an 'A' and an 'a' both count for the first letter of the alphabet). In a separate counter, also count the total number of "other" characters ('.', '?', ' ', '2', etc.). The final exclamation point does not count.
Print out the count for each letter found (but not for those which where not found!)
Print the count of the non-letter characters.
List the characters that were not found (e.g. "The following letters were not found: t, z, c.").
By inspecting the array, print out the total number of all of the vowels, and the total number of all of the consonants.
Finally, print out which letter was found the most times. (Note there may be more than one letter which has the maximum count attached to it.) Also, print out which letter (or letters) was found the least number of times, but make certain to exclude letters which were not found at all.