Please do not give solution in image format thanku (C++) Create a Class called Pet and include the following attributes (3 string data types) Name PetType (this would be something like Dog, Cat, Bird, etc. ) Sound Constructors/Getters/Setters/Functions Constructor - 3 arguments - name, pet type, and sound Getters/Setters for all three attributes PrintPet method/function that will print the attributes such as: Name: Fluffy Type: Cat Sound: Meow Program User prompts: Name PetType (this would be something like Dog, Cat, Bird, etc. ) Sound Program requirements Main program to demonstrate the class. (Your main Method) Pet.h file (or hpp depending on your IDE) Pet.cpp file You will need to prompt the user for the Pet information to populate the Pet class attributes. Once you have the data - create a Pet and hand the variables to the 3 Argument Constructor. Output of the values of the attributes Pet instance as shown above Deliverables - Upload the following files in a zip folder that you have created: C++ code files (3 files - the Pet.cpp, Pet.h and your main program file) Screenshot of the Console with the code executing
Please do not give solution in image format thanku
(C++)
Create a Class called Pet and include the following attributes (3 string data types)
Name
PetType (this would be something like Dog, Cat, Bird, etc. )
Sound
Constructors/Getters/Setters/Functions
Constructor - 3 arguments - name, pet type, and sound
Getters/Setters for all three attributes
PrintPet method/function that will print the attributes such as:
Name: Fluffy
Type: Cat
Sound: Meow
Name
PetType (this would be something like Dog, Cat, Bird, etc. )
Sound
Program requirements
Main program to demonstrate the class. (Your main Method)
Pet.h file (or hpp depending on your IDE)
Pet.cpp file
You will need to prompt the user for the Pet information to populate the Pet class attributes. Once you have the data - create a Pet and hand the variables to the 3 Argument Constructor.
Output of the values of the attributes Pet instance as shown above
Deliverables -
Upload the following files in a zip folder that you have created:
C++ code files (3 files - the Pet.cpp, Pet.h and your main program file)
Screenshot of the Console with the code executing
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 4 images