You will write a C++ program to manage the dogs to be shown at an AKC-style dog
ID: 664562 • Letter: Y
Question
You will write a C++ program to manage the dogs to be shown at an AKC-style dog show. You may need to research these shows before the lab. They have a list of official breeds and certain classes of breed, such as hunter. For our purposes this does not need to be precise. You’ll need 3+ classes and 3+ of the breeds in that class.
You will use a class for the dogs. The class should have data elements for the following information: dog name, owner name, trainer name, breed, and class of breed. The class should have member functions for the following information activities: show the dog, pose the dog, and get in line. The functions won’t do much.
A show is done mostly as follows: line them up (by class of breed), each dog is then shown, i.e. trotted around the display area, it is then posed for a hands-on inspection by the judge, then it gets back in line. Each dog is taken from the line in order. For our purposes the order can be random.
Use a vector to hold each line by class of breed, i.e. all Hunters go in the same line. Each class is shown. After all dogs are shown the awards would follow, best in breed/class/show. We aren’t going to worry about that.
Create your class. Have the user enter the information for each dog (this is why only 9 dogs are required. You can enter whatever you want we aren’t checking if they’re registered official breeds. Once the information is entered (i.e. the object is created) put the dog in the correct line for its class of breed.
When the show starts display to the user, which class of breed is being shown, then display each dog’s name, breed, owner, and trainer. Displaying the dog is being shown, posed, and finished. Proceed to the next dog. When finished with one class of breed go to the next.
You should use a vector for each class of breed. You could use a single vector for all but you would need to sort it on class of breed before running the show. You would also need to check class of breed before showing the dog and display that class to the screen before display the dogs.
Sample output
…
Showing Hunters
FiFi Irish County Cork Setter
Owner- Ima Gonna Vin
Trainer- Dude’T Ordie
Now showing
Now Posing
Next dog
Explanation / Answer
#include #include #include #include using namespace std; int chips = 10, choice=0, dog1,dog2,dog3,betchips,betdog,place,betdog2; //Sets the players chip set at 10 int main() { coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.