If Statement "Your Code Will Never Be Executed"
<p>The if else at the bottom will not work; it says that pets do not really exist.</p>

<pre><code>void checkIn ()
{

    int roomNum = 0;
    int party = 0;
    char pets;
    char smoke;

    cout &lt;&lt; "----------------------------" &lt;&lt; endl;
    cout &lt;&lt; "Welcome to Shrek's Swamp Inn" &lt;&lt; endl &lt;&lt; endl;

    cout &lt;&lt; "How many people are In your party? " &lt;&lt; endl;
    cin &gt;&gt; party;

    cout &lt;&lt; "Do you have pets? (Y/N)" &lt;&lt; endl;
    cin &gt;&gt; pets;

    switch (pets)
    {
        case 'Y' : case 'y':
            cout &lt;&lt; "GTLO" &lt;&lt; endl;
            break;
        case 'N' : case 'n':
            cout &lt;&lt; "cool cool" &lt;&lt; endl;
            break;
        default :
            cout &lt;&lt; "User error" &lt;&lt; endl;
    }

    cout &lt;&lt; "Do you want a smoke room? (Y/N) " &lt;&lt; endl;
    cin &gt;&gt; smoke;

    switch (smoke)
    {
        case 'Y' : case 'y':
            cout &lt;&lt; "GTLO" &lt;&lt; endl;
            break;
        case 'N' : case 'n':
            cout &lt;&lt; "cool cool" &lt;&lt; endl;
            break;
        default :
            cout &lt;&lt; "User error" &lt;&lt; endl;
    }

    if((pets == 'Y' || 'y') &amp;&amp; (smoke == 'Y' || 'y')){
        roomNum = rand() % 4 + 1;
        cout &lt;&lt; "Your room is " &lt;&lt; roomNum &lt;&lt; "S" &lt;&lt; endl;
    }
    else if((pets == 'Y' || 'y') &amp;&amp; (smoke == 'n' || 'N')){
        roomNum = rand() % 8 + 5;

        cout &lt;&lt; "Your room is " &lt;&lt; roomNum &lt;&lt; "P" &lt;&lt; endl;
    }
    else if((pets == 'n' || 'N') &amp;&amp; (smoke == 'n' || 'N'));{
        roomNum = rand() % 15 + 9;

        cout &lt;&lt; "Your room is " &lt;&lt; roomNum &lt;&lt; "R" &lt;&lt; endl;
    }

}
</code></pre>