
Create a python program that will accept a string. Count the length of the string and convert all vowels to upper case and all consonants to lower case. Count the number of vowels and consonants in the string. Display all vowels and consonant characters found in the string and the index number of each vowel and consonant character.
Example:
Enter a string: the quick brown fox
String length is 19
Converted string in upper case and lower case: thE qUIck brOwn fOx
There are 5 vowels
Vowel characters are: e u i o o
Vowel characters can be found at index: 2 5 6 12 17
There are 11 consonant characters.
Consonant characters are: t h q c k b r w n f x
Consonant characters can be found at index: 0 1 4 7 8 10 11 13 14 16 18

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images

- Design and implement an application that reads a string from the user and then determines and prints how many of each lowercase vowel (a, e, i, o, and u) appear in the entire string. Have a separate counter for each vowel. Also count and print the number of nonvowel characters.arrow_forwardWrite a function that accepts a pointer to an integer array and the array's size as arguments. The function should allocate a new array, copy the items from the original array to the new one in reverse order, and then deallocate the original array.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





