View the step-by-step solution to:

Assignment #3 - More OOP in C++/Inheritance Due: Sunday, 05/08/16, 11:59pm Grading: You are required to meet with a TA within two weeks from the due...

Zoo Tycoon Program in C++ due in one week please help!! Directions are very specific

Assignment #3 – More OOP in C++/Inheritance Due: Sunday, 05/08/16, 11:59pm Grading: EVERY assignment in this course is graded by demoing your work for 10 minutes with a TA. You are required to meet with a TA within two weeks from the due date to demo, and you receive an automatic 50 point deduction for failure to do so. If you miss a scheduled appointment, you will be penalized 10 points for rescheduling within 1 day (24 hours), 25 points within 7 days (1 week), and 50 points for anything outside of a week. Your job is to convince the TA that your program works correctly, i.e. show your TA how to use/break your program (90 pts) Program Implementation: Problem Statement You are the proud owner of a virtual zoo that has places to house tigers, polar bears, and penguins! You will write a Zoo Tycoon game using classes and inheritance. Zoo Tycoon is a game where the user creates a zoo that has exhibits with a number of different animals in each. Your zoo animals can be Tigers, Polar Bears, and Penguins. You start with an initial amount of money in your zoo bank, and from there you can begin to op. Specific Animal traits: Age o >=3, adult <3, baby Cost o Tigers cost $10,000, Polar Bears cost $5,000 and penguins cost $1,000. Babies o Tigers have 1 baby, Polar Bears have 2 babies, and penguins have 3 babies. Average Food Cost o Tigers have a feeding cost of 5 times the average food cost per animal, Polar Bears 3 times the average food cost per animal, and Penguins have an average animal food cost per animal. Payoff o Tigers average 10% of their cost plus a bonus in payoff per animal, Polar Bears and penguins (like other animals) average 5% of their cost in payoff per animal. Game Flow: You begin your zoo with a specified amount of money, e.g. 100,000 dollars. You can buy either one or two of each animal to start your zoo. Each time you buy an animal, the cost of that animal is subtracted from the bank. Each animal bought starts with an age value of 3. Each turn is a “day”. At the beginning of the day, each animal increases 1 day older, and the user pays the feeding cost of each animal. This is required, so that the animals
Background image of page 1
don’t die. After that money is subtracted from the bank, a randomized event takes place. Random Events: 1) a sickness occurs in the zoo, ask the user which animal will die, subtract the cost of the animal from your budget. 2) a boom in zoo attendance occurs, generate a random bonus for the tigers, 250-500 dollars add the payoff of each animal back into your budget as a reward 3) a baby animal is born, ask the user for the animal having a baby if there is an animal old enough to be a parent, age > 3 add number of babies born to that specific animal type to the exhibit else, reprompt the user for an animal. begin baby at age 0, 4) nothing happens. After the random event, calculate your payoffs for the day based on normal visits for penguins and polar bears, and possibly a bonus from a boom in attendance to see the tigers! Last, ask the player if they want to buy an adult animal, continue to the next day, or end the game. If they chose to buy an animal, subtract that cost and add the animal to the appropriate exhibit. When you add money for profit or subtract money for sickness, the babies, or animals with an age value less than 3 “days”, have a value of 2 times their normal payoff or cost. Requirements Each exhibit is a dynamic array of each type of animal. You must have classes for a zoo, animal, tiger, penguin , and polar bear . You Must Implement Inheritance: Your tiger, penguin, and polar bear must inherit some traits and behaviors from the animal class, while there may be others unique to the specific animal, such as a bonus for tigers. Every time you buy an animal, at the beginning of the game or during play time, subtract that animals cost from the bank. Subtract the feeding cost (which depends on how many animals you own and what kind) every morning. Have a random event take place during each turn and perform those bank transactions correctly. Animals that aren’t “born” in the zoo start at age 3 and this age is incremented every day. Animals younger than 3 (animals born in the exhibit) cost or earn the zoo 2 times their regular amount.
Background image of page 2
Show entire document
Sign up to view the entire interaction

Top Answer

Attached is a... View the full answer

rectyk1027301868.zip - Preview not available

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online