Anne Dawson:
CSCI110A_HW2_SP05.htm
First created:
Tuesday 1st February 2005, 13:22 PT, AHD
Last
updated: Tuesday 1st
February 2005, 15:23 PT, AHD
This document is
subject to change without notice.
Please report
any errors or omissions in this document:
adawson@coquitlamcollege.com
For due date, see
course schedule.
Special
instructions: Each student must complete this homework.
CSCI110A
Homework 2
-------------------
Specification:
-------------
Write a program
that reads a text file of ten numbers (the numbers are in random order) and
uses one function to find the lowest number, another function to find the
highest number, and another function to find the average of the numbers. Create
your own test files using Notepad.exe.
The name of the text file should be entered using a text box on the
form. Results should be output to a picture box. Declare all variables.
You can assume that all numbers in the text file are greater than 0 and less than 1000.
Marking Scheme:
--------------
The following
marking scheme applies:
Course
Code: CSCI110A
Semester:
SP05
Assignment
Code: HW2
Lab
Specification: lowest,
highest and average number in a file of ten numbers
Instructor
Name: Dr
Anne Dawson
Student Name:
Student Number:
DESIGN
1. Appropriate data types and control
structures (loops
and decisions) are
used.
/10
2. The User Interface (output to the
screen) is
clear and tidy.
/10
3. Note: you must use at least three
programmer-defined
functions in your program.
You must also supply a Word
document containing the
algorithm and pseudocode
for each function. See the
textbook and this page:
http://www.coquitlamcollege.com/adawson/Pseudocode.htm
for an explanation of
algorithms and pseudocode.
/10
MAINTAINABILITY
4. The program is commented appropriately
- including
programmer name, date and
filename.
/10
5.
The program has
meaningful identifiers for variables
and controls; i.e. text boxes have a name starting
with txt, picture boxes
have a name starting with
pic, etc.
/10
6. The program is indented (spaced out)
correctly, to
aid the understanding of
the code.
/10
7. The code is easy to follow.
/10
CORRECTNESS:
8. The program contains zero errors
/10
9. 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
10. The program
is complete.
/10
Total: /100
Date: