C++ code
if image not clear
Ung the Decebenw (D pain if you do not in Dostawhow to hold dog mere doin the lebee me le YCIUR CODE SHOULD HANDLE ANY FILL NOT POST THE SAMPLE FRO point The Due por should have two methanchan function to allow dont to enter the dog park they aren't scared tatsThis function should take a Duy parameter and we in return type to point of the dog is not a scaredy cat, it should be added to the other dogs in the park from the file and 1 should be returned 10 points should return otherwise i5 point a tunction to output a file of dogs of a specific breed. This function should take a string parameter (10 points the trued to output and output a file of the names of all dogs in the park of that breed 15 points. It should have vold return tvet2 Sample file German Shepherduri.yes Pug Emmano breed, om scared.co yes-trueno-label Goldendoodle Ketchupes css Dos string breed string name hance E R. T C 1 S F G H Z . X B N M class Doel string breed string name, bool scaredy.cat: public Dogistring breed, string name, bool scaredy_cat) this-breed-breed: this->name name: this scaredy cat-scaredy.cat: 1 string get name return name: string get breedo retum breed this scaredy.cat-scaredy_cat string get name return name: 1 string get breed) 1 return breed, 1 bool get scaredy return scaredy_cat: 1: Edit View Insert Format Tools Table 12pt Paragraph BIU 00 BE Question 2 82 pts Problem 2-Code 182 points Using the Dog class below 10 points if you do not use the Dog class below to hold dog info), create a Dosparkclass. The Dor park class should have a constructor that takes a filename parameter (10 points and creates the dogs in the file (see sample file-YOUR CODE SHOULD HANDLE ANY FILE. NOT JUST THE SAMPLE FILE) (20 points. The Depark class should have two public functions a function to allow cops to enter the dog park if they aren't scaredy cats. This function should take a Dog parameter and have an int return type (10 points. If the dog is not a scaredy cat, it should be added to the other dogs in the park (from the file) and 1 should be returned (10 points. It should return otherwise (5 points) function to output a file of dogs of a specific breed. This function should take a string parameter (10 points, the breed to output, and output a file of the names of all dogs in the park of that breed (15 points. It should have a void return type 12 points! Sample file: German Shepherd. Farsyes Pug.Emmano breed nome, scoredy cat estrucno-false) Goldendoodie Ketchup yes can Doel & 7 2 3 4 5 6 8 W E R . Y Ung the Decebenw (D pain if you do not in Dostawhow to hold dog mere doin the lebee me le YCIUR CODE SHOULD HANDLE ANY FILL NOT POST THE SAMPLE FRO point The Due por should have two methanchan function to allow dont to enter the dog park they aren't scared tatsThis function should take a Duy parameter and we in return type to point of the dog is not a scaredy cat, it should be added to the other dogs in the park from the file and 1 should be returned 10 points should return otherwise i5 point a tunction to output a file of dogs of a specific breed. This function should take a string parameter (10 points the trued to output and output a file of the names of all dogs in the park of that breed 15 points. It should have vold return tvet2 Sample file German Shepherduri.yes Pug Emmano breed, om scared.co yes-trueno-label Goldendoodle Ketchupes css Dos string breed string name hance E R. T C 1 S F G H Z . X B N M class Doel string breed string name, bool scaredy.cat: public Dogistring breed, string name, bool scaredy_cat) this-breed-breed: this->name name: this scaredy cat-scaredy.cat: 1 string get name return name: string get breedo retum breed this scaredy.cat-scaredy_cat string get name return name: 1 string get breed) 1 return breed, 1 bool get scaredy return scaredy_cat: 1: Edit View Insert Format Tools Table 12pt Paragraph BIU 00 BE Question 2 82 pts Problem 2-Code 182 points Using the Dog class below 10 points if you do not use the Dog class below to hold dog info), create a Dosparkclass. The Dor park class should have a constructor that takes a filename parameter (10 points and creates the dogs in the file (see sample file-YOUR CODE SHOULD HANDLE ANY FILE. NOT JUST THE SAMPLE FILE) (20 points. The Depark class should have two public functions a function to allow cops to enter the dog park if they aren't scaredy cats. This function should take a Dog parameter and have an int return type (10 points. If the dog is not a scaredy cat, it should be added to the other dogs in the park (from the file) and 1 should be returned (10 points. It should return otherwise (5 points) function to output a file of dogs of a specific breed. This function should take a string parameter (10 points, the breed to output, and output a file of the names of all dogs in the park of that breed (15 points. It should have a void return type 12 points! Sample file: German Shepherd. Farsyes Pug.Emmano breed nome, scoredy cat estrucno-false) Goldendoodie Ketchup yes can Doel & 7 2 3 4 5 6 8 W E R . Y