Question: Problem 1 Create a SouthDrunk The first task is to define a SouthDrunk class that is defined based on the Drunk class defined in the

Problem 1 Create a SouthDrunk
The first task is to define a SouthDrunk class that is defined based on the Drunk class defined in the lecture notes. From the class, you can create SouthDrunk objects. Each SouthDrunk walks southward with probability p, which has the default value 0.15.
In the skeleton code provided below, the class contains the methods you need to define in the class. If the comment for the method says "do not change," please do NOT change it.
Note that you are expected to define SouthDrunk as a subclass of the Drunk class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!