CSE 283 Introduction to Object Oriented Design
Barbara Nostrand, Ph.D.
CSE 283 Labs
Lab 4: Projects
1. Gain further experience defining methods.
This week's project is to expand the number of methods provided by the metric module Metric.class, as a four-person group project. Each group member is responsible for three different conversion methods. When you have finished extending the metric module, modify Driver to test all thirteen methods in Metric.class
Each of the following projects is to be the responsibility of a different member of your group. That person is responsible for adding the necessary prototypes and definitions to their own copy of module metric to provide the indicated functionality.
Each group member is to write the methods for which they are responsible on their own, without consulting anyone else. The group should then meet together to create a master documentation file containing documentation for all of the methods, a master implementation file containing all of the method definitions, and a master driver file containing all the testing code.
(Hint: Elect a group coordinator, and have each group member send their completed module and driver files to the coordinator via e-mail. The group can then assist the coordinator in the 'cut-and-paste' work needed to assemble the individual work into the master files. The coordinator can e-mail copies of the master files back to each of the participating group members.)
The master driver program should perform the following steps:
0. Print a greeting. 1. Prompt for, and input a real value, storing it in inVal; 2. Output the result of calling method A with inVal as an argument; 3. Output the result of calling method B with inVal as an argument; ... N. Output the result of calling method L with inVal as an argument.
Your driver program should thus test each method in the module.
The documentation file for metric should indicate which group member was responsible for which methods. Only that group member will be penalized for any errors in that set of methods, or its documentation.
Last modified: 2007 OCT 28