Anne Dawson: CSCI101A_HW2_SU05.htm 

 

First created: Sunday 29th May 2005, 11:43 PT, AHD

 

 

This document is subject to change without notice.

 

Please report any errors or omissions in this document to:

anne.dawson@gmail.com

 

For due date, see course schedule.

 

Special instructions:  Each student must complete this homework individually, but discussion is encouraged.

 

 

CSCI101A Homework 2

-------------------

 

Specification:

-------------

 

Counter class

#9, p331, 5th Ed

#8, p379, 4th Ed

#8, p362, 3rd Ed

#8, p354, 2nd Ed

 

Marking Scheme:

--------------

 

The following marking scheme applies:

 

 

Course Code:      CSCI101A

Semester:         SU05

Assignment Code:  HW2

Instructor Name:  Dr Anne Dawson

 

 

Student Name:

Student Number:

 

 

DESIGN

 

1.  The program has appropriate modularity

    i.e. functions are used where it makes sense to use them.   /10

                       

2.  Appropriate data types are used.                            /10

 

3.  Appropriate control structures are used

    (i.e. loops and decisions).                                 /10

 

4.  The User Interface (output to the screen) is

    clear and tidy.                                             /10

 

MAINTAINABILITY

 

5.  The program is commented appropriately - including

    date, filename and pre- and post-condition

    comments.                                                   /10

 

6.  The program has meaningful identifiers.                     /10

 

7.  The program is indented (spaced out) correctly, to

    aid the understanding of the code.                          /10

 

8.  The code is easy to follow.                                 /10

 

CORRECTNESS:

 

9.  The program compiles with 0 errors and 0 warnings.          /10

 

10. Appropriate test data and results are shown in

    the comments at the top of the code. 

    An appropriate number and variety of test data

    sets is supplied.                                           /10

 

 

                                               % Complete:

                                                    Total:     /100

                                                     Date: