Enteng, your grade 6 nephew, and his friends like to keep secrets from you. Whenever you are around, they start talking in words you cannot understand. After a few days of listening in to their conversations, you finally understood what they are saying. You realized that they are actually using Tagalog in their conversations. However, the words they are speaking are codified using a very simple method: after each vowel in a word, a key consonant, is added and the vowel is repeated.
Thus, when Enteng said “Hibindibi nibiyaba tabayobo mabaibiibintibindibihaban,” you recognized that the key consonant he used is B and you translated the sentence as “Hindi niya tayo maiintindihan.” You were also thankful that Enteng and his friends use one key consonant only for all the words in a single sentence.
Enteng’s father, however, still cannot understand his son and his friends whenever they speak in codes. You decided to help him by creating a program that will translate a codified Tagalog
A file containing the sentences to be translated. Each line in the file contains one sentence preceded
by the key consonant being used. Input file is encrypt.txt
The translated sentence.
this is the problem in c++..and i dont have any idea about this problem..
That said, on a non-programming note, it seems to me that the example doesn't follow the rules.
Z Computer --> Cozoppuzutezer
What happened to the 'm' in computer? I don't interpret the rules as saying any letters get replaced. They're only ADDED. But that's not a programming issue. That's an issue of confirming that you understand the rules. If the examples are correct and follow the rules, I for one do not. Maybe you need to understand Tagalog to understand.
We can probably help again, but it would be useful to know what your new problem is. :) As usual include (1) what you're trying to accomplish, (2) the code (or an appropriate portion of it) that you've written so far, (3) what it's doing wrong, and (4) what you've tried so far that hasn't worked for you. We don't ask this to be annoying, it actually helps you: learning how to ask for help in a clear way actually forces you to think through your own problem in an organized manner, so that you can start seeing how to fix issues without actually needing to ask the questions!