Skip to content

LeyenQian/CSCI4448_Project_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4448 Project 1

Contact information

  • Name: Leyen Qian (108384916)
  • Email: jiqi2811@colorado.edu
  • Team Members: Ziyue Guo (107037369), Puyuan Zhang (107207898)

Files Description

  1. Main.java ( ./Main.java )
    the entry point of the program.

  2. dayatthezoo.out ( ./dayatthezoo.out )
    sample output (number of days: 7)

  3. Animal.java ( ./Animals/Animal.java )
    the abstract class inherited by all beast divisions (Canine, Feline, Pachyderm and Ursidae).

  4. Canine, Feline, Pachyderm and Ursidae classes are inherited by animal speces under the breed directory respectively.
    ( ./Animals/Canine/Breed.* )
    ( ./Animals/Feline/Breed/* )
    ( ./Animals/Pachyderm.Breed/* )
    ( ./Animals/Ursidae/Breed/* )

  5. Zoo.java ( ./Zoo/Zoo.java )
    zoo class can store all employee and animal instances.

  6. ZooKeeper.java ( ./Zoo/Employee/Zookeeper.java )
    It inherites the ZooEmployee class from the partent dictory, and provides additional function that specific to zoo keeper, such as feed animals and roll call animals.

Issue

It would be better to implement the random animal behavoirs by using the weighted random selection algorithm. But I found Java's design priciple on dictionary or key value pair are different than that in Python or C. Therefore, I choose to implement it with the random number function.

Releases

No releases published

Packages

No packages published

Languages