Answer to Question #279541 in C for Gilleo

Question #279541

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.

1
Expert's answer
2021-12-16T04:50:32-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS