Question: 1 ) Create a class called Current. The initialization method should give an initial velocity and direction which will default to 0 degrees ( due
Create a class called Current. The initialization method should give an initial velocity and direction which will default to degrees due north. Add a method called getvector that returns the current velocity and direction. Each time getvector is called the velocity will randomly change in the range of to and the direction will change degrees. The velocity will be feet per iteration. pts
Create a class called Location to track the location an object, and a class called Canal to hold our rubber ducks, it also has a width An attribute of the canal should be the current. If an object hits the bank the vector will reflect off of the bank that is if the direction is degrees the reflection would be degrees. pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
