Question
Ask the user to enter string example:
This is a test from Jupiter. Soon you will see who is from Jupiter!!! May be Dr. D.
Your program should parse the string and keep track of number of alphabet. Both arrays are indexed from 0 to 25. The logical way to do this is to use upper[0] to
Count the number of ‘A’, and upper[1] to count number of ‘B’ and so on. Likewise
For the lower array.
Output should look like:
A: 0 a:2
B: 0 b:0
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
int main(int argc, char** argv) {char c;
int uppercase[26];
int lowercase [26];
char buf[200];
int i;
for (i = 0; i < 26; i++) {
uppercase[i] = 0;
lowercase[i] = 0;
}
printf("Enter the string: ");
fgets(buf,200,stdin);...