Hi Guyz.
I've been given a task to write a program that prompts the user to input a text, and the program calculates the number of vowels & consonants, then sorts the text on a table in ascending order with respect to vowels/consonants (as the user desires). And lastly, print the frequency of each word contained in the text.
Here's how it's required to look like:
Enter Text:
I Love c plus plus.
Original Text analysis.
|words| |Consonants| |Vowels|
I 0 1
Love 2 2
c 1 0
plus 3 1
plus 3 1
Sort words in text:
1) By increasing number of consonants
2) By increasing number of vowels
1
words| |Consonants| |vowels| |Frequency|
I 0 1 1
c 1 0 1
Love 2 2 1
plus 3 1 2
plus 3 1
Please help out guys, i need to submit this on wednesday....i really appreciate for the opportunity. Thanks.
I'm actually new to lists. Now having problems with passing strings/characters into the list.
and as for the sorting aspect, don't really know how to get around it...
Here's what i've done so far: