
Filename:
CharCount.java
Instructions:
Ask a user to input a string
Program should determine the number of occurrences of the letters
contained on the input string based on the English alphabet.
Note: Treat every character as uppercase characters numeric.
Numeric characters are omitted.
Sample Implementation:
Input: Object Oriented Programming 1
Output:
A ? 1 F ? 0 K ? 0 P ? 1 U - 0 Z - 0
B ? 0 G ? 1 L ? 0 Q ? 0 V - 0
C ? 0 H ? 0 M ? 2 R ? 3 W - 0
D ? 1 I ? 2 N ? 2 S ? 0 X ? 0
E ? 3 J ? 0 O ? 3 T ? 2 Y ? 0
TECHNICAL DESCRIPTION:
The program should contain three (3) methods, namely:
main Method
method where implementation and execution takes place
inputValue Method
method that will be invoked to execute the string input
displayChar Method
method that will be invoked to execute the displaying of the
characters and their occurrence
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.