Question: * add comments Problem Statement Write a C program that gets a set of characters from the user and store it in a char array.

 * add comments Problem Statement Write a C program that gets
a set of characters from the user and store it in a
* add comments

Problem Statement Write a C program that gets a set of characters from the user and store it in a char array. The reading continues until two consecutive (##)characters are detected. You may use the following declaration for your array: char chars[50]: If the array is not empty, then the program displays the following about the elements of the array: 1. The number of vowel characters. 2. The number of non-vowel characters. 3. The number of lower case letters. 4. The number of upper case letters. 5. The percentage of upper case letters of all letters. 6. The percentage of vowels of all characters. 7. The number of numerical characters. 8. The number of prime numbers. 9. All prime numbers in the input set. Notes Note 1: iftwo characters are entered at the begging of the input, the program will stop as shown in Fig.1. In this case, the array would be empty. Enter A Set of Characters: Unfortunately, the array is empty! The program will stop now Fig 1 Note 2: To convert a number character to its corresponding numerical value, subtract the zero character from the character itself, for example (int)( 9 0') 9. Note 3: Make sure to avoid division by zero wherever possible. Note 4: Test your program with the following input sets: a) bcde 12345670 AB## c) d) 1234w##ki

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!