Monday, May 24, 2010

Need a C++ Project for CBSE 11?

CBSE Class 11,


Need a good program .





Please suggest website link or send me 1 if you have





Thank-You





It could be on any form , such as airline managemnt , banking , library. Just any one will do . Ty

Need a C++ Project for CBSE 11?
copy the code;


i have tried to make some thing like KBC.


you can edit the code and add more questions.


please send the code if any changes made.





#include%26lt;iostream.h%26gt;


#include%26lt;conio.h%26gt;


#include%26lt;dos.h%26gt;


#include%26lt;graphics.h%26gt;


#include%26lt;process.h%26gt;





/*


Made By Shashank Shastri


Mail Any Comments Or Doubts To sbs.shastri@gmail.com*/











/******************************


* *


* VARIABLES %26amp; FUNCTIONS *


******************************/





void q1();void q2();void q3();void q4();void q5();void q6();void q7();


void border();


void start();


void set1();


void right();


void wrong();








int x1=35;


int x2=355;


int y1=345;


int y2=415;


int i=0;


char ch;





/*********************************


* GRAPHICS *


**********************************/


void graphics()


{


int aq1=VGA,aq2=VGAHI;


initgraph(%26amp;aq1,%26amp;aq2,"c:\\tc\\bgi");


}








/***************************


* BORDER *


***************************/


void border()


{


setcolor(LIGHTBLUE);


line(0,322,640,322);


line(0,325,640,325);


line(0,470,640,470);


line(0,467,640,467);


line(2,325,2,467);


line(5,325,5,467);


line(639,325,639,467);


line(636,325,636,467);


line(0,395,640,395);


line(320,325,320,467);


setcolor(YELLOW);


settextstyle(0,HORIZ_DIR,1);


outtextxy(15,355,"A.");


outtextxy(335,355,"B.");


outtextxy(15,425,"C.");


outtextxy(335,425,"D.");


setcolor(WHITE);


setfillstyle(SOLID_FILL,RED);


fillellipse(480,80,30,20);


fillellipse(480,130,30,20);


fillellipse(480,180,30,20);


outtextxy(465,75,"50:50");


outtextxy(470,125,"POLL");


outtextxy(465,175,"PHONE");


rectangle(10,10,620,260);


rectangle(20,20,610,250);


floodfill(15,15,WHITE);


}





void set1()


{


setcolor(WHITE);


settextstyle(2,HORIZ_DIR,8);


}





void right()


{setcolor(RED);outtextxy(150,200,"RIGH... ANSWER");}








void wrong()


{setcolor(RED);outtextxy(150,200,"WRON... ANSWER");delay(2000);exit(0);}





void start()


{


setcolor(BLUE);


rectangle(10,10,620,460);


rectangle(20,20,610,450);


setfillstyle(SOLID_FILL,RED);


floodfill(15,15,BLUE);


setcolor(YELLOW);


settextstyle(10,HORIZ_DIR,3);


outtextxy(getmaxx()/2-170,getmaxy()/2-... TO KBC");


delay(2000);


}











/*************************************...


* *


* MAIN FUNCTION *


**************************************...


void main()


{


clrscr();


graphics();


start();


clearviewport();


border();


set1();


q1();


q2();


q3();


q4();


q5();


q6();


q7();


}





void q1()


{


outtextxy(15,280,"1.WHO IS FAMOUSLY CALLED BAPU?"); //1 QUESTION


settextstyle(7,HORIZ_DIR,2);


outtextxy(x1,y1,"GANDHI");


outtextxy(x2,y1,"DADDU");


outtextxy(x1,y2,"NEHRU");


outtextxy(x2,y2,"S.C.BOSE");


ch=getch();


delay(100);


if (ch=='a'||ch=='A')


{right();}


else


{wrong();}


delay(999);


}


void q2()


{ //2.QOUESTION


clearviewport();


border();


set1();


outtextxy(15,280,"2.WHICH BUILDING HAS THE LONGEST CORIDOR ? ");


settextstyle(7,HORIZ_DIR,2);


outtextxy(x1,y1,"AIRPORT");


outtextxy(x2,y1,"RAILWAY STATION");


outtextxy(x1,y2,"PARLIAMENT");


outtextxy(x2,y2,"RASTRAPATI BHAVAN");


ch=getch();


delay(100);


if(ch=='d'||ch=='D')


{right();}


else


{wrong();}


delay(999);


}


void q3()


{


clearviewport(); //3.QUESTION


border();


set1();


outtextxy(15,280,"3.WHO GAVE THE LAWS OF MOTION ?");


settextstyle(7,HORIZ_DIR,2);


outtextxy(x1,y1,"I.NEWTON");


outtextxy(x2,y1,"AVAGADRO");


outtextxy(x1,y2,"EINSTIEN");


outtextxy(x2,y2,"C.V.RAMAN");


ch=getch();


delay(100);


if (ch=='a'||ch=='A')


{right();}


else


{wrong();}


delay(999);


}


void q4()


{


clearviewport(); //4.QUESTION


border();


set1();


outtextxy(15,280,"4.PLANET THAT CAN BE SEEN WITH THE NAKED EYE? ");


settextstyle(7,HORIZ_DIR,2);


outtextxy(x1,y1,"MERCURY");


outtextxy(x2,y1,"VENUS");


outtextxy(x1,y2,"URANAS");


outtextxy(x2,y2,"JUPITER");


ch=getch();


delay(100);


if(ch=='c'||ch=='C')


{right();}


else


{wrong();}


delay(999);


}


void q5()


{


clearviewport(); //5.QUESTION


border();


set1();


outtextxy(15,280,"5.WHICH WEIGHS MORE 1kg IRON OR COTTON ?");


settextstyle(7,HORIZ_DIR,2);


outtextxy(x1,y1,"IRON");


outtextxy(x2,y1,"COTTON ");


outtextxy(x1,y2,"BOTH ARE EQUAL");


outtextxy(x2,y2,"NOTHING CAN BE SAID");


ch=getch();


delay(100);


if (ch=='C'||ch=='c')


{right();}


else


{wrong();}


delay(999);


}


void q6()


{


clearviewport(); //6.QUESTION


border();


set1();


outtextxy(15,280,"6.WHAT IS THE TENURE OF A GOVERNMENT ?");


settextstyle(7,HORIZ_DIR,2);


outtextxy(x1,y1,"2 YEARS");


outtextxy(x2,y1,"5 YEARS");


outtextxy(x1,y2,"7 YEARS");


outtextxy(x2,y2,"6 MONTHS");


ch=getch();


delay(100);


if (ch=='B'||ch=='b')


{right();}


else


{wrong();}


delay(999);


}


void q7()


{


clearviewport(); //7.QUESTION


border();


set1();


outtextxy(15,280,"7.HOW MANY WEEKS ARE THERE IN A YEAR ?");


settextstyle(7,HORIZ_DIR,2);


outtextxy(x1,y1,"52");


outtextxy(x2,y1,"50");


outtextxy(x1,y2,"51");


outtextxy(x2,y2,"53");


ch=getch();


delay(100);


if (ch=='A'||ch=='a')


{ right();cout%26lt;%26lt;"Great your Answer was Absolutely correct You have won nothing";}


else


{wrong();}


delay(999);


}
Reply:goto http://www.cplusplus.com/
Reply:so simple download this and rate me as the best answer f u like it








http://www.sourcecodesworld.com/source/L...

flower girl

No comments:

Post a Comment