Try giving our doubledutch program a full name like “John Smith.” What happens to the space?

What will be an ideal response?


The space is treated as a consonant, such that you get a response like:
JuJohuhnun u SuSmumituthuh

What if you include punctuation like periods or hyphens?

Anything that is not a vowel is treated as a consonant, therefore periods and hyphens are
also treated as consonants. Therefore you get responses like:
```
>>> doubledutch("Mr. John Brown-Smith")
MuMrur.u. u JuJohuhnun u BuBrurowuwnun-u-SuSmumituthuh
```
How could you create more full featured doubledutch that gets around these problems? There are a couple of ways to get around these problems. One way is to simply check first if there are any special characters in the string. Otherwise, one could explicitly list all consonants, instead of simply checking if characters are not vowels.

Computer Science & Information Technology

You might also like to view...

Which is an example of data you might store in an array?

A. Phone bills B. average temperatures C. grades D. All of the above

Computer Science & Information Technology

To drag an anchor point, you need the ____ tool.

A. Direct Selection B. Selection C. Convert Anchor Point D. Path

Computer Science & Information Technology

After setting the properties for the fields in your table, you can use Datasheet view to enter records in the table.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Answer the following statement(s) true (T) or false (F)

1. You can draw attention to the text in a composition by adding it using a horizontal orientation, so it is read top to bottom. _________________________ 2. When you enter paragraph type, the bounding box expands to fit the text as you add it to the canvas. _________________________ 3. You can warp text to give it a unique shape. 4. You can modify the extent of the warping of text by changing the Warp percentage. _________________________

Computer Science & Information Technology