Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Practical 6: Polymorphism and Complexity
1 General Instructions
All submissions for the practical assignments should be under version control. Submission
procedure remains the same with the first practical assignment.
The directory under version control for this assignment should be named as
https://version-control.adelaide.edu.au/svn/aXXXXXXX/2018/s2/adds/assignment6/
where aXXXXXXX is your student ID.
If you get stuck on one of the hidden test cases and really cannot resolve it yourself,
please feel free to ask the practical tutors for hints.
We encourage you to finish your work before the practical session and take the session as
consulting time.
2 Problem Description
2.1 Objective
This practical will test your knowledge on polymorphism.
2.2 Design
In a file named design.pdf, describe how you are going to solve the problem and test
your implementation with the test cases you designed based on the stages below.
Testing Hint: it’s easier if you test things as a small piece of code, rather than building
a giant lump of code that doesn’t compile or run correctly. As part of your design, you
should also sketch out how you are going to build and test the code.
2.3 Problem
DNA contains the genetic code that defines the structure of every organism on Earth.
The information in this DNA is copied and inherited across generations from individual
to individual, but may change over generations due to crossover and mutation. A more
successful individual is more likely to survive to breed, increasing the likelihood that it
will be able to pass on its particular DNA encoding.