CIS 122: Assignment #5

Due at the start of class,
Thursday, August 5, 2004


Reading:

Ch. 13; Appendix F, if you're unfamiliar with binary numbers

Programming Problems:

Do the following problems from your text:

  1. Chapter 13, Problem 17(a)

For extra credit, complete the body of the indexOfFirstVowel() function, from today's Pig Latin project. The code, with internal documentation is available here.

Standards:

As with all programming projects, your work will be judged primarily on its correctness. In particular, the programs must compile. Programs that do not will receive a severe grade penalty. Over and above this is the requirement of correct behavior: the binary string reported must be correct (watch out for the mistake of printing the result backwards).

Third, there is presentation: prompts should be formatted neatly (the precise form is up to you, but please keep it simple).

Finally, your program will be judged on elegance and adherence to the principles of good programming style. Elegance means that there should be nothing there that isn't necessary for the computation: all variables should have a use, as should all assignments to those variables. Style refers to the proper use of indentation, information variable names, documentation with comments, and other matters of readability. For a discussion on the elements of programming style, see pages 24-27 of your text and/or The Elements of C++ Style (available on reserve in th Science Library).

Turn in:


John H. E. Fiskio-Lasseter
Last modified: Tues Aug 03 16:00:24 PDT 2004