Icon

07_​Recursive_​Loop - Solution

07_Recursive_Loop - Solution
Exercise Recursive LoopReplace the alphabet characters with umlaute (ä, ö and ü), which are some special non ASCII characters specific to theGerman language, with their ASCII representation in the German sentence "Ich wünsche Dir schöne Ferien in Ägypten."(= I hope you have nice holidays in Egypt.)- Build a recursive loop using the recursive loop nodes with ports for two updated tables- In each iteration, the loop body should extract one row from the ASCII representation table with the Row Splitter node. - Each iteration should then convert the “umlaut” and the ASCII representation into Flow Variables with the Table Row toVariable node and use them in the String Manipulation node to make the replacement- The loop is supposed to stop if the lookup table has less than one row. Therefore, the stopping criterion in theconfiguration dialog of the loop end node should be set to “minimal number of rows” being equal to 1.Note! This is an advanced exercise and goes beyond the scope of the L2-DW course, yet it helps you to understand howa recursive loop works. ASCII representationGerman sentenceTop: the row for current iterationBottom: the rest of the rows for future iterations Convert “umlaut” and theASCII representationinto Flow VariablesReplace "umlaut"by ASCII Table Creator Table Creator Recursive LoopStart (2 ports) Recursive LoopEnd (2 ports) Row Splitter Table Rowto Variable String Manipulation Exercise Recursive LoopReplace the alphabet characters with umlaute (ä, ö and ü), which are some special non ASCII characters specific to theGerman language, with their ASCII representation in the German sentence "Ich wünsche Dir schöne Ferien in Ägypten."(= I hope you have nice holidays in Egypt.)- Build a recursive loop using the recursive loop nodes with ports for two updated tables- In each iteration, the loop body should extract one row from the ASCII representation table with the Row Splitter node. - Each iteration should then convert the “umlaut” and the ASCII representation into Flow Variables with the Table Row toVariable node and use them in the String Manipulation node to make the replacement- The loop is supposed to stop if the lookup table has less than one row. Therefore, the stopping criterion in theconfiguration dialog of the loop end node should be set to “minimal number of rows” being equal to 1.Note! This is an advanced exercise and goes beyond the scope of the L2-DW course, yet it helps you to understand howa recursive loop works. ASCII representationGerman sentenceTop: the row for current iterationBottom: the rest of the rows for future iterations Convert “umlaut” and theASCII representationinto Flow VariablesReplace "umlaut"by ASCIITable Creator Table Creator Recursive LoopStart (2 ports) Recursive LoopEnd (2 ports) Row Splitter Table Rowto Variable String Manipulation

Nodes

Extensions

Links