A Balanced Introduction to Computer Science
For Introduction to Computing and the Web courses in departments of Math and Computer Science.
Bridge Page: www.prenhall.com/reed
Author Website: www.dave-reed.com/book
Results 1-3 of 6
As part of your page, you should define a function called PigLatin that takes a
string as input and returns the Pig Latin translation. For example, the call PigLatin
("oops") should return "oopsway", whereas PigLatin("foo") should return "oofay".
However, your current piglatin.html page does nothing to prevent users from
entering a string containing spaces.Thus,a user could enter “foo bar”in the text
box and be told that the Pig Latin translation is “oo barfay”. Modify your PigLatin ...
EXERCISE 17.6 Modify your piglatin.html page from Chapter 15 (Exercise 15.8)
so that the user can translate phrases, instead of just individual words.The page
should break the user's input into words, convert each word to Pig Latin,and then
Internet and the Web
HTML and Web Pages
The Internet and the Web
19 other sections not shown