Part 1 Understand the Problem and Class Design with UML
- The client needs a program to calculate the age of a tuna fish.
The program must store the length of the fish in cm, and the weight
of the fish in pounds. To calculate the estimated age of the fish
in years multiply the length times the weight then divide by 10000.
Design a class based on this word problem.
- Testing values are 300 cm length, and 1111.12 pounds.
- Using the word problem above, design a class with the needed
fields, one default (no parameter) constructor, and needed methods.
Document your design using a detailed UML Class diagram.
- Note: The calculations used in this word problem are
fictional.