Create a program like SIMSIMI in the playstore that would ask the user at least 10-20 question. The program must interact with user using details about the user like name, birthday, etc.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int age,yoe,duration,course_year;
string name,gender,job,company,stu_yn,college_name, course_name,school_name,class_name, fav_sub;
cout<<"***********************Hi, Welcome to the Game***************************"<<endl;
cout<<"What is your Good Name? ";
cin>>name;
cout<<"What is your Age? ";
cin>>age;
cout<<"Are you Male or Female? (M for Male and F for Female) ";
cin>>gender;
if (age >= 18)
{
cout<<"Are you working or not? (Y for yes and N for no) ";
cin>>job;
if (job == "Y")
{
cout<<"In which company you are working in? ";
cin>>company;
cout<<"For how long you have been working there? (Just Answer Number of Years)";
cin>>duration;
cout<<"Your Year of Experience? (Just Answer Number of Years)";
cin>>yoe;
}
else
{
cout<<"Are you College going Student or Not? (Y for yes and N for no) ";
cin>>stu_yn;
if (stu_yn == "Y")
{
cout<<"In which College you are studying? ";
cin>>college_name;
cout<<"In which course you are currently enrolled in? ";
cin>>course_name;
cout<<"In which Year you are currently in? (Just Answer Number of Years) ";
cin>>course_year;
}
else
{
cout<<"In which School you are studying? ";
cin>>school_name;
cout<<"In which class you are currently enrolled in? ";
cin>>class_name;
cout<<"Your Favourite Subject? ";
cin>>fav_sub;
}
}
}
return 0;
}
Comments
Leave a comment