CST 8110 - Assignment 14

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

This assignment is due in my assignment box by 13:45 on Wednesday, July 30.

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 program demonstrates your ability to understand nested IF statements and decision tables. To do this assignment correctly, you must read and understand the Chapter 4 sections dealing with nested IF statements and multiple-alternative decisions.

Before you begin this assignment, finish reading Chapter 4. (Omit section 4.8.) Review the Self-Check exercises for section 4.7, and pay careful attention to section 4.9. These sections deal with nested IF statements, and with common problems in using IF statements.

Assignment:

  1. Review the Self-Check exercises for section 4.7 on your own; bring questions to your Lab. You do not need to hand in these exercises; however, you must know how to do them.
  2. Review the Chapter 4 Quick-Check exercises on page 194. (Omit questions on "switch" statements.) You do not need to hand in these exercises; however, you must know how to do them.
  3. Write driver programs that prompt for input and test these nested IF statements:
  4. Hand in the source code listings of the above programs.

Notes:

Evaluation

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.