next up previous
Next: Optional Refinement Up: In the Laboratory: Pig Previous: Problem Design: PigLatinApplet

Implementation

The implementation of this program is left to you as a lab (or programming) exercise. Remember to use stepwise refinement as you develop your program. Also, develop and use appropriate preconditions and postconditions for each of the methods in your program. These will be helpful during design, coding, and testing of your algorithms. For example, the findFirstVowel() method would have the following conditions:

    // findFirstVowel(String s)
    // PRE:  s != NULL
    // POST: findFirstVowel(s) == 0 IF CONTAINS NO VOWELS
    //       findFirstVowel(s) == n IF s.charAt(n) IS FIRST VOWEL



Ralph Morelli {Faculty}
12/22/1999