10.4 Lab

Overview

10.4 Lab

Pig Latin Translator II

Work through the stories in order. Use the acceptance criteria to check each feature, and complete the nested tasks using the specified names, values, and scenarios.

Translate initial consonant clusters
Acceptance Criteria
Acceptance criteria
  • The initial consonant cluster moves to the end before the ay suffix.
  • The reverse translation handles the exercise’s stated ambiguity; the documented snap/apsnay/naps case is accepted.
  • The upgraded application retains translation in both directions.
Instructions
1.Upgrade your Pig Latin translator.
A Modify your Pig Latin translator to follow these rules:

If the word starts with a single consonant, move the first letter to the end of the word and add "ay" to the end. Dog -> ogday If the word starts with a consonant cluster, move the cluster to the end of the word and add "ay" to the end. Snap -> apsnay If the word starts with a vowel add "way" to the end. Eagle -> eagleway

Your existing reverse translator will not be completely accurate. For example, the word snap translated to Pig Latin is "apsnay". "Apsnay" translated back to English with your translator would be "naps". This is okay.

Completion review
2.Review the feature acceptance criteria
A Confirm the required results

Return to each story and verify its acceptance criteria. Preserve the submission format and destination stated in the activity; a reading, setup guide, lab, video demonstration, and oral final may require different evidence.

Translate initial consonant clusters