Last revised: Sunday September 27, 1998 01:06.
This assignment is due in my assignment box by 13:45 on Monday, July 28.
All assignments are evaluated based on their neatness and how closely they follow the assignment submission guidelines published in the online course notes.
This program demonstrates your ability to understand C language conditions and simple IF statements. To do this assignment correctly, you must read and understand the Chapter 4 sections dealing with conditional expressions and the simple IF statement.
The CST 8110 Blue Book contains the Algonquin standard for writing IF statements in C and pseudocode. The appendices contain many examples of IF statements used in programs and pseudocode. Use these examples to guide you.
Before you begin this assignment, finish reading Chapter 4. (Omit section 4.8.) Make sure you know how to do the Self-Check and Programming exercises in sections 4.2 , 4.3, and 4.4. (Verify your answers with the answers in the book.) Learn how C handles logical expressions.
Assignment:
INPUT TYPE |
TEST SET 1 |
TEST SET 2 |
Unpaid balance: | 0 |
12.34 |
Previous reading: | 100 |
200 |
Current reading: | 195 |
310 |
Use last year: | 100 |
110 |
Notes:
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.