Question: Write a C++ program which has three classes. The first class is INPUT, which has a char type of array, name[]. Also, it has a

Write a C++ program which has three classes. The first class is INPUT, which has a char type of array, name[]. Also, it has a member function called show to take any number of characters into the array, name. The second class, COUNT, which also has a member function called show to count and print the total number of characters, number of vowels and number of consonants into the array, name. The third class, REVERSE which also has a member function called show to print the characters into the name in reverse order.

Expected output of your program is as follows:

Contents of the array, name: MOHINI Total Number of characters: 6

Total number of vowels: 3

Total number of consonants: 3

Reverse of the characters into the array, name: INIHOM

You can take any types/numbers of variables as required for your program. Also, to implement the program use friend class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!