txt file XQAC ZVM PDAE AV SNIC SY AAAB BB \"Vowels-R-Us\" Introduction: Describe
ID: 3660965 • Letter: T
Question
txt file XQAC ZVM PDAE AV SNIC SY AAAB BB "Vowels-R-Us" Introduction: Described below is from the American Computer Science League which was used in one of their early competitions. This demands careful reading and understanding of the task at hand. It also brings together a great many computer science skills. Among these reading from an external data file, using loops, using conditional branching, designing our own methods and using the String class. Be advised that you will need to develop a careful design before you begin this project. A data file will be provided for test purposes. Problem Munition.: The vowels on planet ACSL are naturally enough, the letters A, C, S, and L. All other letters are considered to be consonants. There are two tasks associated with each word; forming the plural and adding a suffix. Your program is to form the plural of words and attach suffixes according to the following rules:Explanation / Answer
making the word plural is easy as the last letters are either vowel or consonant so counting the number of vowels/consonants we can directly make it plural by following the 2nd column of the table given:- E.G:-AAAB BB becomes AAABBH in plural. to add a suffix we neend to work a little more as it is a bit complicated because of looping of the process. So the suffix of AAAB BB comes out to be AAABBB
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.