Computer Science 1107
AN INTRODUCTION TO FORTRAN PROGRAMMING FOR SCIENTISTS AND ENGINEERS

Fall 2001

Read the announcement page for more information

Programming Assignment 10
Due date: Wednesday, November 21, 2001



Objective: To explore writing a FORTRAN 77 program using arrays.

Menu-Driven Multi-Purpose List-Processing Program

For this program you are to create a multi-level menu-driven program to manipulate an array in a variety of ways. Use subroutines and/or functions to implement the various menu choices in the program, passing the array as needed. You may assume that the user will never enter a list with more than 100 numbers, and that no file will have more than 1000 entries.

Your program should have the following functionalites:

Be sure to do the following:
  1. Create a hand-drawn flow chart for the program using the appropriately shaped boxes for start-stop, Input/Output, and computation as discussed in class OR write out the algorithm for the entire program using pseudocode which should be written out by hand, not typed.

  2. Write the FORTRAN program, naming the source code file lab10.f and including an explicit list of all variables as well as a short description of the problem in a documentation section using comment lines at the beginning of the program. Be careful to choose the types of your variables appropriately and to include the names and student numbers of all authors in the documentation section.

  3. Run the program with sufficiently many carefully selected sets of input to demonstrate the correctness of your algorithm for each of the menu choices, including the following:
  4. Check your results before creating your script file.

Then hand in the following:


Recall: For this and all programming assignments you should follow good software engineering principles including documenting your program with comments and using meaningful names for variables. Failure to do this will lead to reduced credit.

For this and subsequent programming assignments, you have the option of working in teams of two people. In this case, turn in one copy of your results with both names and student numbers included on every page of every item submitted.



Course Policies Tentative Schedule Help and References
Assignments Grades and Announcements Home