Rearrange Word ISC Computer Science 2010 Theory
Input a word in uppercase and check for the position of the first occurring vowel and perform the following operations: Words that begin with a vowel are concatenated with "Y". For example, EUROPE becomes EUROPEY. Words that contain a vowel in-between should have the first part from the position of the vowel till the end, followed by the part of the string from beginning till the position before the vowel and is concatenated by "C". For example, PROJECT becomes OJECTPRC. Words that do not contain a vowel are concatenated with "N". For example, SKY becomes SKYN. Design a class Rearrange using the description of the data members and member functions given below: Class name : Rearrange Data members/instance variables : txt: to store a word. cxt: to store the rearranged word. len: to store the length of the word. Member functions : Rearrange(): constructor to initialize the instance variables. void readWord(): to accept the word input in uppercase. void conver...