File1 G File2 1 will convert the message in File1 to Gibberish using ithig File2 g File3 1 will convert the message in File2 from Gibberish using ithig
FileToGibberish(inputFileName, outputFileName, comboCode) open the files combo = GetCombo(comboCode) read inputWord from the input file while the input file operation is successful outputWord = WordToGibberish(inputWord, combo) write outputWord to the output file read inputWord from the input file close the files return
string WordToGibberish(word, code) lastVowelPos = -10 returnWord = "" for pos = 0 to length of word if IsVowel(word[pos]) if pos != lastVowelPos -1 add code to returnWord add word[pos] to returnWord return returnWord
string WordFromGibberish(word, code) startpos = 0 while startpos < word.size() find the position (pos) of the occurence of code in word at or past startpos if the find was successful extract all letters from startpos to pos and append them to returnWord startPos = pos+length of the code add all the letters from startPos to the end of the word to returnWord return returnWord