CMSC 132 Homework 3 Solution: UML Class Design for a Park with Hunters, Prey, and Dogs - P, Assignments of Computer Science

A problem description and potential uml class design for a park scenario involving customers, hunters (birds and dogs), and prey (turkeys). The abilities and behaviors of each entity, such as flying, barking, hiding, chasing, and tracking. The uml class design includes classes for customer, hawk, turkey, greyhound, bloodhound, and hound.

Typology: Assignments

Pre 2010

Uploaded on 02/13/2009

koofers-user-l7t
koofers-user-l7t 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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

Partial preview of the text

Download CMSC 132 Homework 3 Solution: UML Class Design for a Park with Hunters, Prey, and Dogs - P and more Assignments Computer Science in PDF only on Docsity!

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