design a class Word Wise to separate words from a sentence and find the frequency of palindrome words.
of the members of the class are given below:
class name :Word Wise.
data members/instance variables:
str: to store a sentence
c: to store number of palindrome words
Member functions/methods:
Word Wise(): default constructor
void readsent(): to accept a sentence
boolean count(String w): returns true if w is palindrome else false
void arrange(): displays original sentence and print only palindrome word and also print the number of
palir.drome words
Define the class Word Wise giving details of the constructor( ), void readsent(), Boolean count(String) and voidarrange(). Define the main() function to create an object and call the functions accordingly to enable the task.
Answers
Answered by
3
Answer:
I am very poor in math sorry bro
Similar questions
Math,
3 months ago
Social Sciences,
3 months ago
Math,
6 months ago
English,
10 months ago
Science,
10 months ago