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 DayDec 12, 2021

Answer To: I have to do an application for my c++ beginners class in college. My game asks the users questions...

Aditya answered on Dec 13 2021
141 Votes
#include
using namespace std;
int main()
{
string season = "";
string foodTyp
e = "";
bool loop = true;
while(loop)
{
cout<<"Enter from one Winter or Summer: ";
cin >>season;
if(season == "Winter")
{
loop = false;
break;
}
else if(season == "Summer")
{
loop = false;
break;
}
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