Saturday, 30 July 2011

Artificial Intalligence


//*********************************************************************************
//
//                   Project Name :: ARTIFICIAL INTALLIGENCE
//
//                   Prepared By :: ASHUTOSH SINGH
//
//*********************************************************************************



#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<string.h>
#include<process.h>
#include<ctype.h>
void main()
{ clrscr();
char user[1000],name[50],comp[50],dream[50];

cout<<"\n\nHi! Friends..!!!\n\n";
gets(user);
if((strcmp(user,"hello")==0) || (strcmp(user,"Hello")==0) ||

(strcmp(user,"Hi")==0) || (strcmp(user,"hi")==0))
{
cout<<"\n\nWhat is your name ?\n\n";
delay(1000);
gets(name);
delay(1000);
cout<<"\n\nNice Name.....\n\n";
gets(user);
if((strcmp(user,"And what is your name")==0) || (strcmp(user,"and what

is your name")==0) || (strcmp(user,"and your")==0) ||

(strcmp(user,"What is your name")==0) || (strcmp(user,"what is your

name")==0) || (strcmp(user,"and your")==0) || (strcmp(user,"Who are

you")==0) || (strcmp(user,"who are you")==0))
{
 cout<<"\n\n\n\n\nMy name is  \"ROBOTASHU\"\n";
 delay(500);
 cout<<"\n\nRAM 512 Mega Bytes..\n\n";
 delay(500);
 cout<<"\n\nHard Disk Memory 1 Giga Bytes..\n";
 delay(500);
 cout<<"\n\nDDR2 Memory 1 Giga Bytes..\n";
 delay(500);
 cout<<"\n\nIntel ATOM Processer 230..\n\n\n\n\n";
 delay(2500);
 }
else
{
cout<<"\n\n\nHey !!!! What's you typing....I can't understand ????\a";
delay(1500);
cout<<"\n\nEXITING.....";
delay(2500);
exit(0);
}
cout<<"\n\n\nWell , what are you doing at that time ?\n\n";

gets(user);
if((strcmp(user,"study")==0) || (strcmp(user,"Study")==0))
{
cout<<"\n\nWow!! Study and Hard work is the key of success ....\n\n";
cout<<"\n\nSo.. What is the plan for future...\n\n";
delay(900);
cout<<"\n\nI mean . What do you become in a future ?\n\n";
gets(dream);
 if((strcmp(dream,"Hacker")==0) || (strcmp(dream,"Engineear")==0) ||

(strcmp(dream,"Docter")==0) || (strcmp(dream,"Scientist")==0) ||

(strcmp(dream,"Police")==0) || (strcmp(dream,"IAS")==0) ||

(strcmp(dream,"PCS")==0) || (strcmp(dream,"IPS")==0) ||

(strcmp(dream,"Politician")==0))
{
cout<<"\n\nI wish your dream of "<<dream<<" comes true..\n\n";
cout<<"\n\nAnd wish you All the Best....for your best Future..\n\n";
cout<<"\n\nGOOD LUCK.....\n\n";
}
}
else if((strcmp(user,"job")==0) || (strcmp(user,"Job")==0))
{
cout<<"\n\nNice....\n\n";
cout<<"\n\nWell, "<<name<<" in which Company you will be joined

?\n\n";
gets(comp);
cout<<"\n\n "<<comp<<" is the Best company...\n\n";
cout<<"\n\nWell...At last God may Bless you for your Light

future..\n\n";
cout<<"Good Luck !!";
}
else if((strcmp(user,"nothing")==0)||(strcmp(user,"Nothing")==0))
{
cout<<"\n\nWhat you planed for future ?\n\n";
gets(user);
cout<<"Nice....";
}
}
else
cout<<"\n\nAnybody is there....!!!!!";
exit(0);
}

No comments:

Post a Comment