CST 8110 - Assignment 16 (final)

Last revised: Sunday September 27, 1998 01:06.

This assignment is due in my assignment box by 13:45pm on Monday, August 11.
This is the last assignment for the course.

All assignments are evaluated based on their neatness and how closely they follow the assignment submission guidelines published in the online course notes.

Purpose and Instructions

This assignment demonstrates your ability to understand the remainder of C language loop constructs. To do this assignment correctly, you must read and understand Chapter 5.

The CST 8110 Blue Book contains the Algonquin standard for writing DO/WHILE and FOR statements in C and pseudocode. The appendices contain many examples of DO/WHILE and FOR statements used in programs and pseudocode. Use these examples to guide you.

Before you begin this assignment, finish reading Chapter 5. Review the Self-Check exercises for sections 5.5, 5.6, and 5.7. You do not have to hand in these exercises; however, you must know how to do them.

Pay careful attention to sections 5.9 and 5.10 dealing with debugging programs and common errors.


  1. Finish reading Chapter 5. This is the last chapter we cover in this course.
  2. Review the Self-Check exercises for sections 5.5, 5.6 and 5.7 on your own; bring questions to your Lab if you have difficulties. You do not need to hand in these exercises; however, you must know how to do them.
  3. Write the following programs in Algonquin standard form:
  4. Hand in the source code listings of the above programs.
  5. Hand in one page of output from each program using the following input values:



The aggregate of all assignment marks comprises 25% of your final mark. All assignments must be completed satisfactorily to get credit for the course, even if the assignments are submitted too late to receive a mark. (See the course outline.)

Late assignments are handled according to the policy given in the course outline.