
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CMSC 132 Homework 3 - Solution
Problem Description
A park contains customers and two types of animals, birds and dogs. Birds can be either turkeys or hawks. Some dogs are hounds. Hounds can be either greyhounds or bloodhounds. Customers, hawks, and hounds (hunting dogs) are all hunters. Turkeys are prey. Animals can travel at different speeds. Birds can fly and dogs can bark. All hunters can detect and capture prey. All prey can hide to avoid detection. Greyhounds can chase prey, and bloodhounds can track prey. Customers may bring hawks or hounds to the park to help hunt turkeys. Whether a turkey is captured depends on its ability to hide or run from hunters.
Possible UML Class Design