![zoo tycoon 3 3 zoo tycoon 3 3](https://i.ebayimg.com/images/g/KVYAAOSwVblckbKg/s-l300.jpg)
Your program should implement the game flow described above. Within your zoo, the exhibit of each species of animal must be represented as a dynamically-allocated array of objects of the appropriate class. You must use inheritance: the classes for monkey, sea otter, and sloth must inherit some traits and behaviors from the animal class, though each of them may also have unique traits or behaviors, as well (e.g. You must have a class for each of the following things: zoo, animal, monkey, sea otter, and sloth. If the player runs out of money at any point, the game ends with the zoo going bankrupt. These babies who are less than 30 days old also cost twice as much as an adult if they get sick. In addition to the specifications above, your game must have these features:Įach baby animal less than 30 days old generates twice the amount of revenue as an adult animal. The owner receives daily revenue for each animal, as specified above.Each time this happens, each monkey generates a random amount of extra bonus revenue between $250 and $500.
![zoo tycoon 3 3 zoo tycoon 3 3](https://www.myabandonware.com/media/screenshots/z/zoo-tycoon-complete-collection-lu9/zoo-tycoon-complete-collection_6.jpg)
Each baby starts with age 0 and is added into the zoo. * A randomly chosen adult animal gives birth to the appropriate number of babies for its species (a non-adult can't have babies). If they do not have enough money, then the sick animal dies and is removed from the zoo. If the owner has enough money to cover this cost, it is subtracted from their bank account. a sick monkey costs half of $15,000, i.e. In order to care for the sick animal, the owner must pay an amount equal to half the initial cost of an animal of the same species as the sick animal (e.g. The special event is chosen at random from among the following: Once the cost of food for each animal is calculated, this amount is subtracted from the owner's bank account.Ī special event occurs. Each day, the base cost changes to a random value between 75% and 125% of the base cost from the day before. The cost of food for each animal is calculated using the base cost of food. The owner must pay the feeding cost for each animal in the zoo (including any they just bought). When the owner buys an animal, the cost of the animal is subtracted from the owner's bank account. Each animal that the owner buys is exactly 3 years old. The owner may only buy one species per day, but they do not have to buy any animals if they don't want to. The owner may buy up to two adult animals of a single species.
![zoo tycoon 3 3 zoo tycoon 3 3](https://cdn.cloudflare.steamstatic.com/steam/apps/1368820/ss_635b914c62ffed454b89a73b16be32ad1cc99598.1920x1080.jpg)
The age of each animal currently in the zoo increases by one day. During a single day, several things happen: You can think of each day as a turn for the player. The game starts with the owner having no animals and $100,000 in the bank, and it proceeds one day at a time. On certain days, when attendance is high, each monkey generates some amount of bonus revenue.Each monkey generates 10% of the cost of a monkey (i.e.each sea otter generates $250 each day, and each sloth generates $100 each day). All animals except monkeys generate 5% of the cost of one of their species (i.e.Each animal generates daily revenue equal to a percentage of the initial cost of one of its species.Sloths have a daily food cost equal to the base food cost.Sea otters have a daily food cost of 2 times the base food cost.Monkeys have a daily food cost of 4 times the base food cost.The base daily food cost varies on a day-to-day basis (see below).For all species, an animal is a baby if it is less than 30 days old.For all species, an animal is an adult if it is at least 3 years old.They accomplish these goals by investing in animals, feeding them, caring for them when they are sick, and raising their babies when they are born.Įach species of animal has these specific traits: As the owner, it's the player's job both to ensure the welfare of the animals and to generate as much profit as possible. The Zoo Tycoon gameįor this assignment, you will implement a small game where the player acts as the owner of the city's zoo, which has exhibits of monkeys, sea otters, and sloths. o files, or other crufty stuff) are committed and pushed back into your repository on GitHub to earn credit for the assignment.
#Zoo tycoon 3 3 code
Follow the directions below, and make sure your source code files ( no executable files. The goal of this assignment is to start working with inheritance in C++.