Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ code please do fast and send me already updated Ung the Decebenw (D pain if you do not in Dostawhow to hold dog mere
C++ code
please do fast and send me
already updated
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 (0 points if you do not use the Dog class below to hold dog infol.create a Dosparkclass. The Dos 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 Dos por class should have two public functions - tunction to allow clogs 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 tuve a vald return type 12 points Sample file: German Shepherd Futs.yes Pug Emmano breed nome, scoredy.cat fes-true. nowfalse) Goldendoodie Ketchup yes class Dog 2 3 & 7 4 5 6 8 R. T E Y class Dogl string breed: string name: bool scaredy.cat: public: Dog(string breed, string name, bool scaredy.cat) this->breed-breed; this->name-name: this->scaredy_cat-scaredy_cat: 1 string get named retum name: 1 string get breedo return breed, 1 string get_namel return name: 1 string get_breedo return breed: 1 bool get scaredyo return scaredy_cat: Edit View Insert Format Tools Table 12ptParagraph B I I u 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