Question: This lesson's Group Activities are: Talk like a Pirate! In this activity you are to create an English to Pirate Translator. Users should input a
This lesson's Group Activities are:
Talk like a Pirate! In this activity you are to create an English to Pirate Translator. Users should input a phrase and your program should translate it into pirate speak. A few rules:
Certain words need to be converted:
hello becomes ahoy
hi becomes yohoho
my becomes me
friend becomes bucko
sir becomes matey
where becomes whar
is becomes be
the becomes th
there becomes thar
you becomes ye
anything which ends in ing becomes in
You need to obey capitalization and punctuation: if the word is capitalized, then its translation should also be capitalized. If the sentence ends in a period, then the translation should end in a period. To keep punctuation simple, you can stick to coding for commas and periods, and ignore all the rest.
Pirates like the word "arr". For fun, randomly insert it into your translation.
Remember to use all the tools in your arsenal, especially mainline logic, functions, loops, and error handling.
The "replace" function is your best friend for this one.
You are to:
Post your code for each exercise in the Lesson Group Activities discussion board
Respond to your classmates, providing assistance or commentary as needed
Follow the guidelines for Group Activities which are found under Course Information
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
