Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

I have to do an application for my c++ beginners class in college. My game asks the users questions about themselves such as: "Winter or summer?" "Meat or grass?". According to the user's response, an...

1 answer below »
I have to do an application for my c++ beginners class in college. My game asks the users questions about themselves such as: "Winter or summer?" "Meat or grass?". According to the user's response, an animal will be assigned to them by the end of the questioners. I need help constructing this game for I am totally clueless. I need a simple code that will implement something close to this game. Thank you
Answered Same Day Dec 12, 2021

Solution

Aditya answered on Dec 13 2021
142 Votes
#includeusing namespace std;
int main()
{
string season = "";
string foodType = "";
bool loop = true;
while(loop)
{
cout
"Enter from one Winter or Summer: ";
cin
season;
if(season == "Winter")
{
loop = false;

eak;
}
else if(season == "Summer")
{
loop = false;

eak;
}
else
{
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here