Write an application that displays an active aquarium with at least 3 fish of different colours swimming back and forth. Each fish should run on its own thread.
A fish swims left-to-right until it bumps into the right wall, at which time it flips around and heads right-to-left until it bumps the left wall, and so on. Draw each fish at a different water depth (i.e. different y values) and, for simplicity, keep each fish at its constant depth. Have the fish swim at a different speeds (that is, each fish moves forward a slightly different number of pixels than the other fish in each step).
Urgenthomework helped me with finance homework problems and taught math portion of my course as well. Initially, I used a tutor that taught me math course I felt that as if I was not getting the help I needed. With the help of Urgenthomework, I got precisely where I was weak:
Read More
Follow Us