Goals: To practice programming with circular data.
Extra credit: This assignment is optional and can be done for extra credit.
As always, be very careful with your naming conventions.
Due Date: June 5th at 10:00pm
Finish all work in the Lab 7: Working with Cyclic Data and hand it in.
In your ExamplesBuddies class, be sure to have all of the examples we describe. When you initialize your data, your method should be called initBuddies, and take in no arguments.
Design the method addBuddy and then make example of the circle of buddies as given in the lab.
Design the method hasDirectBuddy
Design the method countCommonBuddies
Design the method hasExtendedBuddy
Design the method partyCount that counts the number of people who will attend a party given by this person if all buddies and all buddies of all buddies (including the distant ones) come to the party. The party organizer attends their own party.
Design the method maxLikelihood on Person that takes in some other person that and returns the maximum likelihood that this person can correctly convey a message to that person. Add an additional constructor to the Person class that takes in the person’s diction score and hearing score. The constructor that takes in just the person’s name can set their diction and hearing scores to 0.0 as default values.