Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
* 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

Solve for x: 2(3x 1)2(x + 5) = 12

Answered: 1 week ago