Write a complete program using two arrays, upper and lower to keep the upper and lower alphabet respectively.

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 PreviewSolution 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: ");
$7.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available C-Family Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats