Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help creating a new type of horse that advances on a percentage rather than a simple coin flip. I have already built the
- I need help creating a new type of horse that advances on a percentage rather than a simple coin flip. I have already built the program using OOP but I can't figure out the live for me on how to do this. PLEASE HELP. I included most of the assignment details: This could be an extension of the basic Horse class. For the constructor, include an int parameter that indicates the percentage of time the horse will move forward. You will need to modify the advance() method to handle the more elaborate movement mechanism. You may want to then have horses with differing abilities in the same race.
- OR YOU CAN DO ONE OF THESE:
- Cosmetic changes. Add a menu system, GUI, or other features to make the game more aesthetically appealing. Try writing the game in another language.
- Multi-player - Allow more than one player to place bets, keeping track of each player's performance
- Bribery. Allow user to 'purchase' performance modifications. This will increase or decrease a particular horse's performance during a race, but there is a chance the player will be caught and immediately lose all his money.
- Implement a betting mechanism. Allow the user to bet on a race before it begins. Keep track of the user's cash through several runs of the program.
THESE ARE REQUIRED:
- You will need two classes: each will have a header and a cpp file.
- You will also need a main.cpp file.
- do not include namespace std
- Each class with need a simple constructor
- Each method should represent something the class can DO.
- The program should utilize a aggregate data structure
- The race class start() method should control most of the race action (I have wrote this already)
- Race::printLane(), I wrote this as well.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started