CS 1001 Introduction to Computers -- D Term, 2000
Assignment 5   Due: Tuesday, April 25, 2000

Purpose:  To write a program that utilizes one-dimensional arrays, DO-Loop, IF, and subroutines.

Problem

Problems 1 and 2 on page 604 of text

Assumptions and Restrictions

You should  design and write subroutines to do the intersection and the union operations.  This way, you can reuse most of the code in the main program of problem 1 to do problem 2.

Grading

This assignment will be graded on 100 points. Point values will be allocated as follows:
Documentation
(30 points) Introductory comment, meaningful identifiers, proper use of indentation and blank lines, comments for variables, algorithm comments.
Functionality
(40 points) The program must work correctly on your test data.
Modularity and Design
(20 points) The program(s) should be simple and easy to follow.
Output
(10 points) Introductory message to the user, useful prompts, helpful error messages, output properly labeled and formatted

Deliverables

Using the turnin program, turn in your Fortran source file and a typescript file showing successful compilation and program execution. Your files must be turned in prior to 12:00 p.m. on April 25, 2000 to receive full credit. The command you should use to turn in your assignment is: /cs/bin/turnin submit cs1001 hw5 hw5.f90 hw5.script