Question: Why is this code not working ? ? #include #include Dog.h #include Cat.h #include Bird.h void displayMenu ( ) { std::cout <
Why is this code not working #include
#include "Dog.h
#include "Cat.h
#include "Bird.h
void displayMenu
std::cout Pet Program
"Please enter for a Dog:
"Please enter for a Cat:
"Please enter for a Bird:
"Please enter to exit:
;
int main
int choice;
std::string fName, lName, pName;
int year;
std::string breed, color;
do
displayMenu;
std::cin choice;
switch choice
case :
Collect details for Dog and create Dog object, then print
break;
case :
Collect details for Cat and create Cat object, then print
break;
case :
Collect details for Bird and create Bird object, then print
break;
case :
std::cout "Exiting program.
;
break;
default:
std::cout "Invalid option. Please try again.
;
while choice ;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
