Print Friendly and PDF



Program

#include <iostream>
#include<windows.h>
using namespace std;
main( )
{
system("color 3f");
int month,date;
int colour;
cout<<"______________Birthday Game____________\n\n\n";
                    //input
do
{
cout<<"Enter your birth month = ";
cin>>month;
if((month>=1)&&(month<=12))
break;
else
cout<<"Invalid Input..."<<endl;
}
 while(1);
do
{
cout<<"Enter your birth date = ";
cin>>date;
if(month==2) //used to tackle february month problem
{
if((date>=1)&&(date<=29))
break;
else
cout<<"Invalid Input..."<<endl;
}
else if((month==1)||(month==3)||(month==5)||(month==7)||(month==8)||(month==10)||(month==12))
{
if((date>=1)&&(date<=31))
break;
else
cout<<"Invalid Input..."<<endl;
}
else
{
if((date>=1)&&(date<=30))
break;
else
cout<<"Invalid Input..."<<endl;
}

} 
while(1);
cout<<"\n\nColour"<<"===="<<"Code"<<endl
<<"\nWhite\t=0"<<endl
<<"Black\t=1"<<endl
<<"Brown\t=2"<<endl
<<"Pink\t=3"<<endl
<<"Red\t=4"<<endl
<<"Blue\t=5"<<endl
<<"Green\t=6"<<endl
<<"Purple\t=7"<<endl
<<"Grey\t=8"<<endl
<<"Yellow\t=9"<<endl
<<"Orange\t=10"<<endl
<<"Other\t=11"<<endl;
do
{
cout<<"\n\nEnter the code of your shirt's colour that you are wearing now = ";
cin>>colour;
if((colour>=0)&&(colour<=11))
break;
else
cout<<"Invalid Input";
} 
while(1);
cout<<"\n\n\nYour statement according to your info is:\n\n";
cout<<endl;
//output
if(month==1)
cout<<"I fell in love with";
else 
if(month==2)
cout<<"i ate";
else
 if(month==3)
cout<<"I smacked";
else 
if(month==4)
cout<<"I sang to";
else if(month==5)
cout<<"I gave my number to";
else
 if(month==6)
cout<<"I murdered";
else if(month==7)
cout<<"I shot";
else
 if(month==8)
cout<<"I danced with";
else
 if(month==9)
cout<<"I choked on";
else 
if(month==10)
cout<<"I went out with";
else if(month==11)
cout<<"I kissed";
else
cout<<"I hugged";
if(date==1)
cout<<" a homeless guy";
else
if(date==2)
cout<<" your mom";
if(date==3)
cout<<" a banana";
if(date==4)
cout<<" a fork";
else
 if(date==5)
cout<<" a Mexican";
else 
if(date==6)
cout<<" a gangster";
else 
if(date==7)
cout<<" a ninja";
else 
if(date==8)
cout<<" an ipod";
else
 if(date==9)
cout<<" my best friend";
else
 if(date==10)
cout<<" a goat";
else
 if(date==11)
cout<<" my dog";
else
 if(date==12)
cout<<" my dad";
else 
if(date==13)
cout<<" the computer";
else 
if(date==14)
cout<<" a football player";
else
 if(date==15)
cout<<" my neighbor";
else 
if(date==16)
cout<<" myself";
else 
if(date==17)
cout<<" a soda";
else if(date==18)
cout<<" a lama";
else 
if(date==19)
cout<<" a pickle";
else
if(date==20)
cout<<" a stuffed animal";
else
 if(date==21)
cout<<" a weirdo";
else
 if(date==22)
cout<<" a sock";
else
 if(date==23)
cout<<" a doctor";
else
 if(date==24)
cout<<" my psychiatrist";
else
 if(date==25)
cout<<" a policeman";
else
 if(date==26)
cout<<" my brother";
else
 if(date==27)
cout<<" my sister";
else
 if(date==28)
cout<<" a baseball bat";
else
 if(date==29)
cout<<" a dvd player";
else
 if(date==30)
cout<<" my best friends brother";
else
cout<<" my cell phone";
if(colour==0)
cout<<" because I was high."<<endl;
else 
if(colour==1)
cout<<" because I was drunk."<<endl;
else 
if(colour==2)
cout<<" because your mom told me to."<<endl;
else
 if(colour==3)
cout<<" because I'm retarded."<<endl;
else 
if(colour==4)
cout<<" because the voices told me to."<<endl;
else
 if(colour==5)
cout<<" because I'm hot and i do what I want."<<endl;
else
 if(colour==6)
cout<<" because I hate myself."<<endl;
else
 if(colour==7)
cout<<" because I'm stupid."<<endl;
else
 if(colour==8)
cout<<" because that's how I roll."<<endl;
else
 if(colour==9)
cout<<" because someone offered me 1,000,000 dollars."<<endl;
else
 if(colour==10)cout<<" because I love my family."<<endl;
else
cout<<" because that's what I do."<<endl;
cout<<endl<<endl;
system("pause");
return 0;
}          //end of main
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: