Design/project04.txt
.edu.INSTITUTION.USERNAME.hotj.project04
.edu.INSTITUTION.USERNAME.hotj.project04
package.This week's project is to expand the number of methods provided by the metric module, as a four-person group project. Each group member is responsible for three different conversion methods. So, officially, there's only the one project for this lab.
Project #4.1: Each of the following groups of conversions is to be the responsibility of a different member of your group. That person is responsible for designing the appropriate methods, writing the code for these methods, writing the documentation for these methods, and writing the tests for these methods. Each method should have its own test method in the test case class, and each test method should test at least five inputs into the method being tested.
Lengths
A. Inches to Centimeters (1 inch = 2.54 cm);
B. Yards to Meters (1 yard = 0.9144 m);
C. Miles to Kilometers (1 mile = 1.609344 km).Weights
D. Ounces to Grams (1 ounce = 28.349523 g);
E. Pounds to Kilograms (1 pound = 0.453592 kg);
F. Tons to Kilograms (1 ton = 907.18474 kg).Volumes
G. Pints to Liters (1 pint = 0.473163 l);
H. Quarts to Liters (1 quart = 0.946326 l);
I. Gallons to Liters (1 gallon = 3.785306 l).Areas
J. Square Inches to Square Millimeters (1 sq. in. = 645.16 sq.mm);
K. Square Feet to Square Meters (1 sq. foot = 0.09290304 sq.m);
L. Acres to Square Meters (1 Acre = 4.04686x10^3 sq.m).After the methods, documentation, and test methods have been written, the group should then meet together to create a single
Metric
class and a single test case class that incorporates all of the test methods.Perhaps the best way to go about this is to elect a group coordinator. Have each group member send their completed methods (both computational and testing) 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 documentation of each method should make it painfully clear who worked on what method. Since you all worked on the classes as a whole, you should all be listed as authors of the class, but each method should have individual authors. The individual authors will be held responsible for their methods. Incorporating it all together is the responsibility of everyone, not just the group coordinator.
Turn in one batch of stuff for your group.
A driver is not necessary for this assignment. Use just a test-case class.
This gradesheet will be used to compute a grade for this assignment: This grade sheet.
Turn the following things:
Lab Home Page | Prelab Questions | Lab Exercise | Homework Projects