1)Input a paragraph containing n no.of sentences where 1<=n<4. The words are to be separated with a blank space and are in uppercase. A sentence maybe terminated either with a fullstop or a question mark only.Any other character maybe ignored.
perform the folowing operations:-
i) Accept the no.of sentences if the no.of sentences exceeds the limit an appropriate error message must be displayed.
ii) Find the no.of words in the whole paragraph.
iii) Display the words in ascending order of their frequency. Words with the same frequency may appear n any order.
For example: Input: Enter no.of sentences
To be or to be not.
Output: Total no.of words
What have you tried? - Matt Gemmell
Nobody will do it for you. Post you best attempt and ask questions. Dumping your assignment without even asking a question is plain rude.
oopsss.... am sry... i ll post my soltn....
And this is not a SMS! Spell out words, you can use more than 160 characters per post.
Thread moved from "Member introductions".
Please refer to the Announcements page for useful forum tips.
Thanks for posting your assignment on the forum, new members (and I) enjoy new ideas.
If you have a question over the assignment be sure to the question with the instructions.