#include <iostream>
usingnamespace std;
int main()
{
int hoursGone;
constint MANY_HOURS = 6;
char haveYard;
int sizeOfYardInSqFeet;
constint SMALL_YARD = 400;
constint LARGE_YARD = 2500;
cout << "On average, how many hours are you gone from home each day? ";
cin >> hoursGone;
if (hoursGone > MANY_HOURS)
cout << "You should consider a cat" << endl;
else
{
cout <<"Do you have a fenced yard? Y or N";
cin >> haveYard;
cout << "You can consider a dog, ";
if (haveYard == 'N' || haveYard == 'n')
cout << "but a small breead such as a Chihuahua" << endl;
else
{
cout << "but you can consider a larger breed" << endl;
cout << "What is the size of your yard in square feet? ";
cin >> sizeOfYardInSqFeet;
if (sizeofYardInSqFeet <= SMALL_YARD)
cout << "Consider a Schnauzer" << endl;
elseif (sizeofYardInSqFeet <= LARGE_YARD)
cout << "Consider a Golden or Labrador Retriever" << endl;
else
cout <<"You can consider a Great Dane" << endl;
}
}
return 0;
}