Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following is an assignment to be coded in Python 3.5. Please follow the instructions carefully and completely. The superclass for Human should be Predator

The following is an assignment to be coded in Python 3.5. Please follow the instructions carefully and completely. The superclass for Human should be Predator I believe.

image text in transcribedimage text in transcribed

The link below is the code the assignment is based upon: https://pastebin.com/50T5RKek

Problem 1. Prey-Predators-Humans Problem Take the prey-predator problem described in Chapter 13 and add humans. Use the file program13- 14.py, attached to the assignment page. A human is a predator that eats prey. It also moves, breeds like an Animal, and kills predators (e.g. to keep prey for humans or for fun) Here are the detailed rules pertaining to humans: 1. A Human object moves like an Animal object on the island grid. 2. A Human object eats Prey just like a Predator object, with starving time given by a Human starve time class attribute, initialized in main0 3. A Human object breeds like an Animal object, with the breeding period given by a Human breed time class attribute, initialized in main0 4. A Human object hunts Predator objects periodically. Every Human.hunt time clock ticks (starting with the Human object's creation time), if a Predator is in a neighboring cell (using check grid0), Problem 1. Prey-Predators-Humans Problem Take the prey-predator problem described in Chapter 13 and add humans. Use the file program13- 14.py, attached to the assignment page. A human is a predator that eats prey. It also moves, breeds like an Animal, and kills predators (e.g. to keep prey for humans or for fun) Here are the detailed rules pertaining to humans: 1. A Human object moves like an Animal object on the island grid. 2. A Human object eats Prey just like a Predator object, with starving time given by a Human starve time class attribute, initialized in main0 3. A Human object breeds like an Animal object, with the breeding period given by a Human breed time class attribute, initialized in main0 4. A Human object hunts Predator objects periodically. Every Human.hunt time clock ticks (starting with the Human object's creation time), if a Predator is in a neighboring cell (using check grid0)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago

Question

What is quality of work life ?

Answered: 1 week ago