SlideShare une entreprise Scribd logo
1  sur  25
DELHI PUBLIC SCHOOL, VIJAYAWADA
DEPARTMENT OF COMPUTER SCIENCE
CERTIFICATE
This is to certify that, this is the bonafied record of project
work done in INFORMATICS PRACTICES(065) Laboratory
during the academic year 2015-16 by Mr./Ms. ANURAG SURYA.V
of class XII with Registration No. .…………………………….
Teacher In charge PRINCIPAL
External Examiner
ANALYSIS AND DESIGN OF
EL GREYMATTER
[PROJECT REPORT]
Particulars of the student:
Name: ANURAG SURYA.V
Class: XII Bi.P.C
Particulars of the Supervisor:
Name: Mr. J.SESHAGIRI
Designation: HOD Computer Science,
DPS, Vijayawada.
ACKNOWLEDGEMENT
It is with great pleasure that I find myself penning down these
lines to express my sincere thanks to various people who helped me
a long way in completing this project.
The harmonious climate in our school provided proper guide for
preparing the project .It was a privilege to have been guided by Mr.
J.SESHAGIRI
Thanks to all my classmates who helped me during the development
of this project with their constructive criticism and advice.
VIJAYAWADA
XII- Bi.P.C
ABSTRACT
WHO WANTS TO BE A MILLIONAIRE? is a sensational game
show. For the thrill it offers to the viewers and the sum of amount it gifts
the participants. It promises a adrenaline rush for everyone and at the
same time it also improves our General Knowledge. The show is a life
changing platform for the doers. Here, we bring you the goodness of
such life changing experience in the form of app. This app offers the
user, rather player, a similar experience as such on the hot seat.
Although, the app is names El Greymatter as it tests your GK as well as
your thinking ability, in situations.
By running this app you go through a series of 15 questions, each
question offering you some amount. If the question is unanswerable you
can take help of the two help lines present.
Each help line works only once. To play the game you have to first give
your name at the opening page and then get on an answering streak.
HOMEPAGE:
This is the homepage of the APP. You have to enter your name in the jTextfield, it’ll be
saved in the database (MySQL) in two tables. One is “pro” which saves the player name and the
other “questions” which save the amount won by the player based on the no of questions he/she
answered.
By clicking on “CONTINUE”, you’ll be able to start the game. The code for
“CONTINUE” button is:
String name=tfname.getText();
JOptionPane.showMessageDialog(this,"WECOME "+name+".CLICK OK TO CONTINUE.");
JOptionPane.showMessageDialog(this,"ALL THE BEST.");
if (name.isEmpty())
JOptionPane.showMessageDialog(this,"PLEASE ENTER YOUR NAME.");
else
{
try
{
Class.forName("java.sql.DriverManager");
com.mysql.jdbc.Connection c=(com.mysql.jdbc.Connection)DriverManager.getConnection
("jdbc:mysql://localhost:3306/pro","root","12345");
com.mysql.jdbc.Statement s=(com.mysql.jdbc.Statement)c.createStatement();
String q="INSERT INTO pro VALUES('"+name+"');";
s.executeUpdate(q);
JOptionPane.showMessageDialog(this,"PLAYER ADDED SUCCESFULLY!");
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
Q1 a=new Q1();
a.setVisible(true);
this.setVisible(false);
QUESTION PAGE:
This is the sample page for a button. The amount you are answering
the question for will be highlighted with a white frame and the amount you’ve won
with a green frame above. If you click on the “correct option button” you’ll be
forwarded to next question, each page contains 3 wrong answers buttons and 1
right answer button (for example, in the first form above button “31 DECEMBER
2000” is the correct answer choosing that will proceed to next answer form Q2).
Else, if you don’t know the answer for the question, you can flip it using the
“FLIP” button (you can flip a question only once in a game). If the answer is
wrong, the game is terminated, i.e, you chose the wrong answer using the “wrong
answer button”, you lose all your money by selecting a wrong option. You can also
quit the game, using “QUIT” button. You’ll lose everything till question 6 and gain
as much as earned after you cross question 6.
RIGHT ANSWER BUTTON:
int b=1000;
try
{
Class.forName("java.sql.DriverManager");
com.mysql.jdbc.Connection
c=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://local
host:3306/PRO","root","12345");
com.mysql.jdbc.Statements=(com.mysql.jdbc.Statement)c.createStatement();
String a="select namefrom pro;";
String name=null;intfound=0;
ResultSet rs=s.executeQuery(a);
while(rs.next())
{name=rs.getString(1);
found++;}
com.mysql.jdbc.Connection
c1=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://loc
alhost:3306/PRO","root","12345");
com.mysql.jdbc.Statements1=(com.mysql.jdbc.Statement)c.createStatement();
String q="INSERT INTO questionsVALUES('"+name+"','"+b+"');";
s1.executeUpdate(q);
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
Q2 a=new Q2();
a.setVisible(true);
this.setVisible(false);
WRONG OPTION BUTTON:
JOptionPane.showMessageDialog(this,"SORRY,BAD LUCK.");
System.exit(0);
QUIT BUTTON: (TILL YOU REACH QUESTION 6.)
JOptionPane.showMessageDialog(this,"YOU HAVE NOT CROSSED QUESTION
6. IF YOU QUIT YOU LOSE EVERYTHING.");
try
{
Class.forName("java.sql.DriverManager");
com.mysql.jdbc.Connection
c=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://local
host:3306/PRO","root","12345");
com.mysql.jdbc.Statements=(com.mysql.jdbc.Statement)c.createStatement();
String a="select namefrom pro;";
String name=null;intfound=0;
ResultSet rs=s.executeQuery(a);
while(rs.next())
{name=rs.getString(1);
found++;}
com.mysql.jdbc.Connection
c1=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://loc
alhost:3306/PRO","root","12345");
com.mysql.jdbc.Statements1=(com.mysql.jdbc.Statement)c.createStatement();
String q="updatequestions set score='0(QUITS AT QUESTION1)' where
name='"+name+"';";;
s1.executeUpdate(q);
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
System.exit(0);
AFTER CROSSING QUESTION 6
JOptionPane.showMessageDialog(this,"CONGRATULATIONON WINNING
Rs.160000");
try
{
Class.forName("java.sql.DriverManager");
com.mysql.jdbc.Connection
c=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://local
host:3306/PRO","root","12345");
com.mysql.jdbc.Statements=(com.mysql.jdbc.Statement)c.createStatement();
String a="select namefrom pro;";
String name=null;intfound=0;
ResultSet rs=s.executeQuery(a);
while(rs.next())
{name=rs.getString(1);
found++;}
com.mysql.jdbc.Connection
c1=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://loc
alhost:3306/PRO","root","12345");
com.mysql.jdbc.Statement s1=(com.mysql.jdbc.Statement)c.createStatement();
String q="updatequestions set score='160000(QUITSAT QUESTION 10)' where
name='"+name+"';";;
s1.executeUpdate(q);
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
System.exit(0);
A dialog of such is displayed based on the amount you win
(here,160000).
FLIP BUTTON:
QA1 a=new QA1();
a.setVisible(true);
this.setVisible(false);
Here, the actual question in form “Q1” is replaced by an
alternate question in form “QA1”.
To stop “FLIP” from appearing multiple times the following
code is used in every form’s “correct answer buttons”:
a.setVisible(true);
this.setVisible(false);
Q2 acd=new Q2();
acd.b1.setVisible(false);
Q3 aa=new Q3();
aa.b1.setVisible(false);
Q4 ab=new Q4();
ab.b1.setVisible(false);
Q5 ac=new Q5();
ac.b1.setVisible(false);
Q6 ad=new Q6();
ad.b1.setVisible(false);
Q7 ae=new Q7();
ae.b1.setVisible(false);
Q8 af=new Q8();
af.b1.setVisible(false);
Q9 ag=new Q9();
ag.b1.setVisible(false);
Q10 ah=new Q10();
ah.b1.setVisible(false);
Q11 ai=new Q11();
ai.b1.setVisible(false);
Q12 aj=new Q12();
aj.b1.setVisible(false);
Q13 ak=new Q13();
ak.b1.setVisible(false);
Q14 al=new Q14();
al.b1.setVisible(false);
Q15 am=new Q15();
am.b1.setVisible(false);
MYSQL TABLES
CONCLUSION
Kaun BanegaCrorepati (Who will become a Millionaire; popularly
known as KBC) is an Indian television game show originally aired on Star Plus
commissioned by the programming team of Sameer Nair and Tarun Katial.
While based on the UK game show Who Wants to Be a Millionaire?, KBC
intersperses the playing of the game with Bollywood style musicalnumbers and
other entertainment.
This app offers the users, rather gamers, a virtual experience like “who wants to
be a millionaire?” or ” Kaun Banega Crorepati ”with a parallel sector of it
improving the G.K of the player. Itcan played by anyoneall they need to do is just
type their name and get on an answering streak.

Contenu connexe

Tendances

Empower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo MixinsEmpower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo MixinsOdoo
 
React.js workshop by tech47.in
React.js workshop by tech47.inReact.js workshop by tech47.in
React.js workshop by tech47.inJaikant Kumaran
 
S.O.L.I.D. Principles
S.O.L.I.D. PrinciplesS.O.L.I.D. Principles
S.O.L.I.D. PrinciplesJad Salhani
 
Android basics – dialogs and floating activities
Android basics – dialogs and floating activitiesAndroid basics – dialogs and floating activities
Android basics – dialogs and floating activitiesinfo_zybotech
 
INHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUS
INHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUSINHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUS
INHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUSVenugopalavarma Raja
 
Single page webapps & javascript-testing
Single page webapps & javascript-testingSingle page webapps & javascript-testing
Single page webapps & javascript-testingsmontanari
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoRob Bontekoe
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)KushShah65
 
Strategies for Mitigating Complexity in React Based Redux Applicaitons
Strategies for Mitigating Complexity in React Based Redux ApplicaitonsStrategies for Mitigating Complexity in React Based Redux Applicaitons
Strategies for Mitigating Complexity in React Based Redux Applicaitonsgarbles
 
Annihilate test smells by refactoring to patterns
Annihilate test smells by refactoring to patternsAnnihilate test smells by refactoring to patterns
Annihilate test smells by refactoring to patternscenny2
 
CONSTRUCTORS IN C++ +2 COMPUTER SCIENCE
CONSTRUCTORS IN C++ +2 COMPUTER SCIENCECONSTRUCTORS IN C++ +2 COMPUTER SCIENCE
CONSTRUCTORS IN C++ +2 COMPUTER SCIENCEVenugopalavarma Raja
 
Managing users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise ManageManaging users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise ManageNR Computer Learning Center
 
Clickable DIVs and other icebergs
Clickable DIVs and other icebergsClickable DIVs and other icebergs
Clickable DIVs and other icebergsBen Buchanan
 

Tendances (17)

Java Assignment Help
Java  Assignment  HelpJava  Assignment  Help
Java Assignment Help
 
Empower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo MixinsEmpower your App by Inheriting from Odoo Mixins
Empower your App by Inheriting from Odoo Mixins
 
React.js workshop by tech47.in
React.js workshop by tech47.inReact.js workshop by tech47.in
React.js workshop by tech47.in
 
Mpg Dec07 Gian Lorenzetto
Mpg Dec07 Gian Lorenzetto Mpg Dec07 Gian Lorenzetto
Mpg Dec07 Gian Lorenzetto
 
S.O.L.I.D. Principles
S.O.L.I.D. PrinciplesS.O.L.I.D. Principles
S.O.L.I.D. Principles
 
Android basics – dialogs and floating activities
Android basics – dialogs and floating activitiesAndroid basics – dialogs and floating activities
Android basics – dialogs and floating activities
 
INHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUS
INHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUSINHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUS
INHERITANCE IN C++ +2 COMPUTER SCIENCE CBSE AND STATE SYLLABUS
 
Single page webapps & javascript-testing
Single page webapps & javascript-testingSingle page webapps & javascript-testing
Single page webapps & javascript-testing
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" Domino
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
 
Strategies for Mitigating Complexity in React Based Redux Applicaitons
Strategies for Mitigating Complexity in React Based Redux ApplicaitonsStrategies for Mitigating Complexity in React Based Redux Applicaitons
Strategies for Mitigating Complexity in React Based Redux Applicaitons
 
Annihilate test smells by refactoring to patterns
Annihilate test smells by refactoring to patternsAnnihilate test smells by refactoring to patterns
Annihilate test smells by refactoring to patterns
 
CONSTRUCTORS IN C++ +2 COMPUTER SCIENCE
CONSTRUCTORS IN C++ +2 COMPUTER SCIENCECONSTRUCTORS IN C++ +2 COMPUTER SCIENCE
CONSTRUCTORS IN C++ +2 COMPUTER SCIENCE
 
Manage users & tables in Oracle Database
Manage users & tables in Oracle DatabaseManage users & tables in Oracle Database
Manage users & tables in Oracle Database
 
Managing users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise ManageManaging users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise Manage
 
Clickable DIVs and other icebergs
Clickable DIVs and other icebergsClickable DIVs and other icebergs
Clickable DIVs and other icebergs
 
Alfredo-PUMEX
Alfredo-PUMEXAlfredo-PUMEX
Alfredo-PUMEX
 

En vedette

Project Bbriefing of the Erasmus IP Project
Project Bbriefing of the Erasmus IP ProjectProject Bbriefing of the Erasmus IP Project
Project Bbriefing of the Erasmus IP ProjectFlatio
 
Oracle knowledge for web self service
Oracle knowledge for web self serviceOracle knowledge for web self service
Oracle knowledge for web self serviceAhmed Gamal
 
Kazakhstan regulatory laws 133
Kazakhstan regulatory laws 133Kazakhstan regulatory laws 133
Kazakhstan regulatory laws 133beelaa79
 
Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...
Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...
Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...Beitissie1
 
dépliant intérieur surimp.compressed
dépliant intérieur surimp.compresseddépliant intérieur surimp.compressed
dépliant intérieur surimp.compressedLouis Dutouquet
 
Raca Bon Encontre (Première)
Raca Bon Encontre (Première)Raca Bon Encontre (Première)
Raca Bon Encontre (Première)BG17
 
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...Lucas Jellema
 
Library management system
Library management systemLibrary management system
Library management systemRaaghav Bhatia
 

En vedette (15)

java mysql 12 class
java mysql 12 classjava mysql 12 class
java mysql 12 class
 
Project Bbriefing of the Erasmus IP Project
Project Bbriefing of the Erasmus IP ProjectProject Bbriefing of the Erasmus IP Project
Project Bbriefing of the Erasmus IP Project
 
Oracle knowledge for web self service
Oracle knowledge for web self serviceOracle knowledge for web self service
Oracle knowledge for web self service
 
Kazakhstan regulatory laws 133
Kazakhstan regulatory laws 133Kazakhstan regulatory laws 133
Kazakhstan regulatory laws 133
 
Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...
Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...
Shirley Portuguese: Psychiatric Manifestations of Medical Problems in Adults ...
 
dépliant intérieur surimp.compressed
dépliant intérieur surimp.compresseddépliant intérieur surimp.compressed
dépliant intérieur surimp.compressed
 
Raca Bon Encontre (Première)
Raca Bon Encontre (Première)Raca Bon Encontre (Première)
Raca Bon Encontre (Première)
 
Baladi shaabijeel
Baladi shaabijeelBaladi shaabijeel
Baladi shaabijeel
 
Presentacion tic 2
Presentacion tic 2Presentacion tic 2
Presentacion tic 2
 
Mysql
MysqlMysql
Mysql
 
Haemorrahge ppt
Haemorrahge pptHaemorrahge ppt
Haemorrahge ppt
 
IP Project
IP ProjectIP Project
IP Project
 
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
Oracle OpenWorld 2016 Review - Focus on Data, BigData, Streaming Data, Machin...
 
Ip project
Ip projectIp project
Ip project
 
Library management system
Library management systemLibrary management system
Library management system
 

Similaire à Ip project

You will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfYou will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfFashionColZone
 
Java Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, LoopsJava Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, LoopsSvetlin Nakov
 
ma project
ma projectma project
ma projectAisu
 
Little book of programming challenges
Little book of programming challengesLittle book of programming challenges
Little book of programming challengesysolanki78
 
Java Guessing Game Number Tutorial
Java Guessing Game Number TutorialJava Guessing Game Number Tutorial
Java Guessing Game Number TutorialOXUS 20
 
I have another assignment due for an advance java programming class .pdf
I have another assignment due for an advance java programming class .pdfI have another assignment due for an advance java programming class .pdf
I have another assignment due for an advance java programming class .pdfFORTUNE2505
 
Mp24: The Bachelor, a facebook game
Mp24: The Bachelor, a facebook gameMp24: The Bachelor, a facebook game
Mp24: The Bachelor, a facebook gameMontreal Python
 
Game programming workshop
Game programming workshopGame programming workshop
Game programming workshopnarigadu
 
JavaProgrammingForBeginners-Presentation.pdf
JavaProgrammingForBeginners-Presentation.pdfJavaProgrammingForBeginners-Presentation.pdf
JavaProgrammingForBeginners-Presentation.pdfSathwika7
 
Strategies for refactoring and migrating a big old project to be multilingual...
Strategies for refactoring and migrating a big old project to be multilingual...Strategies for refactoring and migrating a big old project to be multilingual...
Strategies for refactoring and migrating a big old project to be multilingual...benjaoming
 
Snake game implementation in c
Snake game implementation in cSnake game implementation in c
Snake game implementation in cUpendra Sengar
 
Please help with this. program must be written in C# .. All of the g.pdf
Please help with this. program must be written in C# .. All of the g.pdfPlease help with this. program must be written in C# .. All of the g.pdf
Please help with this. program must be written in C# .. All of the g.pdfmanjan6
 
Stored Procedures and MUMPS for DivConq
 Stored Procedures and  MUMPS for DivConq  Stored Procedures and  MUMPS for DivConq
Stored Procedures and MUMPS for DivConq eTimeline, LLC
 
Noughts and Crosses Design Information
Noughts and Crosses Design InformationNoughts and Crosses Design Information
Noughts and Crosses Design InformationChristopher Orchard
 
2 coding101 fewd_lesson2_programming_overview 20210105
2 coding101 fewd_lesson2_programming_overview 202101052 coding101 fewd_lesson2_programming_overview 20210105
2 coding101 fewd_lesson2_programming_overview 20210105John Picasso
 

Similaire à Ip project (20)

You will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfYou will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdf
 
Java Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, LoopsJava Foundations: Basic Syntax, Conditions, Loops
Java Foundations: Basic Syntax, Conditions, Loops
 
ma project
ma projectma project
ma project
 
Synopsis tic tac toe
Synopsis tic tac toeSynopsis tic tac toe
Synopsis tic tac toe
 
Little book of programming challenges
Little book of programming challengesLittle book of programming challenges
Little book of programming challenges
 
Java Guessing Game Number Tutorial
Java Guessing Game Number TutorialJava Guessing Game Number Tutorial
Java Guessing Game Number Tutorial
 
I have another assignment due for an advance java programming class .pdf
I have another assignment due for an advance java programming class .pdfI have another assignment due for an advance java programming class .pdf
I have another assignment due for an advance java programming class .pdf
 
ADLAB.pdf
ADLAB.pdfADLAB.pdf
ADLAB.pdf
 
Mp24: The Bachelor, a facebook game
Mp24: The Bachelor, a facebook gameMp24: The Bachelor, a facebook game
Mp24: The Bachelor, a facebook game
 
Android Study Jams - Info Session
Android Study Jams - Info SessionAndroid Study Jams - Info Session
Android Study Jams - Info Session
 
Game programming workshop
Game programming workshopGame programming workshop
Game programming workshop
 
ELAVARASAN.pdf
ELAVARASAN.pdfELAVARASAN.pdf
ELAVARASAN.pdf
 
JavaProgrammingForBeginners-Presentation.pdf
JavaProgrammingForBeginners-Presentation.pdfJavaProgrammingForBeginners-Presentation.pdf
JavaProgrammingForBeginners-Presentation.pdf
 
Strategies for refactoring and migrating a big old project to be multilingual...
Strategies for refactoring and migrating a big old project to be multilingual...Strategies for refactoring and migrating a big old project to be multilingual...
Strategies for refactoring and migrating a big old project to be multilingual...
 
Snake game implementation in c
Snake game implementation in cSnake game implementation in c
Snake game implementation in c
 
Please help with this. program must be written in C# .. All of the g.pdf
Please help with this. program must be written in C# .. All of the g.pdfPlease help with this. program must be written in C# .. All of the g.pdf
Please help with this. program must be written in C# .. All of the g.pdf
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Stored Procedures and MUMPS for DivConq
 Stored Procedures and  MUMPS for DivConq  Stored Procedures and  MUMPS for DivConq
Stored Procedures and MUMPS for DivConq
 
Noughts and Crosses Design Information
Noughts and Crosses Design InformationNoughts and Crosses Design Information
Noughts and Crosses Design Information
 
2 coding101 fewd_lesson2_programming_overview 20210105
2 coding101 fewd_lesson2_programming_overview 202101052 coding101 fewd_lesson2_programming_overview 20210105
2 coding101 fewd_lesson2_programming_overview 20210105
 

Dernier

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 

Dernier (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

Ip project

  • 1. DELHI PUBLIC SCHOOL, VIJAYAWADA DEPARTMENT OF COMPUTER SCIENCE CERTIFICATE This is to certify that, this is the bonafied record of project work done in INFORMATICS PRACTICES(065) Laboratory during the academic year 2015-16 by Mr./Ms. ANURAG SURYA.V of class XII with Registration No. .……………………………. Teacher In charge PRINCIPAL
  • 2. External Examiner ANALYSIS AND DESIGN OF EL GREYMATTER [PROJECT REPORT] Particulars of the student: Name: ANURAG SURYA.V Class: XII Bi.P.C Particulars of the Supervisor: Name: Mr. J.SESHAGIRI Designation: HOD Computer Science, DPS, Vijayawada.
  • 3. ACKNOWLEDGEMENT It is with great pleasure that I find myself penning down these lines to express my sincere thanks to various people who helped me a long way in completing this project. The harmonious climate in our school provided proper guide for preparing the project .It was a privilege to have been guided by Mr. J.SESHAGIRI Thanks to all my classmates who helped me during the development of this project with their constructive criticism and advice. VIJAYAWADA XII- Bi.P.C
  • 4. ABSTRACT WHO WANTS TO BE A MILLIONAIRE? is a sensational game show. For the thrill it offers to the viewers and the sum of amount it gifts the participants. It promises a adrenaline rush for everyone and at the same time it also improves our General Knowledge. The show is a life changing platform for the doers. Here, we bring you the goodness of such life changing experience in the form of app. This app offers the user, rather player, a similar experience as such on the hot seat. Although, the app is names El Greymatter as it tests your GK as well as your thinking ability, in situations. By running this app you go through a series of 15 questions, each question offering you some amount. If the question is unanswerable you can take help of the two help lines present. Each help line works only once. To play the game you have to first give your name at the opening page and then get on an answering streak.
  • 5. HOMEPAGE: This is the homepage of the APP. You have to enter your name in the jTextfield, it’ll be saved in the database (MySQL) in two tables. One is “pro” which saves the player name and the other “questions” which save the amount won by the player based on the no of questions he/she answered. By clicking on “CONTINUE”, you’ll be able to start the game. The code for “CONTINUE” button is: String name=tfname.getText(); JOptionPane.showMessageDialog(this,"WECOME "+name+".CLICK OK TO CONTINUE."); JOptionPane.showMessageDialog(this,"ALL THE BEST."); if (name.isEmpty()) JOptionPane.showMessageDialog(this,"PLEASE ENTER YOUR NAME.");
  • 6. else { try { Class.forName("java.sql.DriverManager"); com.mysql.jdbc.Connection c=(com.mysql.jdbc.Connection)DriverManager.getConnection ("jdbc:mysql://localhost:3306/pro","root","12345"); com.mysql.jdbc.Statement s=(com.mysql.jdbc.Statement)c.createStatement(); String q="INSERT INTO pro VALUES('"+name+"');"; s.executeUpdate(q); JOptionPane.showMessageDialog(this,"PLAYER ADDED SUCCESFULLY!"); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } } Q1 a=new Q1(); a.setVisible(true); this.setVisible(false);
  • 7. QUESTION PAGE: This is the sample page for a button. The amount you are answering the question for will be highlighted with a white frame and the amount you’ve won with a green frame above. If you click on the “correct option button” you’ll be
  • 8. forwarded to next question, each page contains 3 wrong answers buttons and 1 right answer button (for example, in the first form above button “31 DECEMBER 2000” is the correct answer choosing that will proceed to next answer form Q2). Else, if you don’t know the answer for the question, you can flip it using the “FLIP” button (you can flip a question only once in a game). If the answer is wrong, the game is terminated, i.e, you chose the wrong answer using the “wrong answer button”, you lose all your money by selecting a wrong option. You can also quit the game, using “QUIT” button. You’ll lose everything till question 6 and gain as much as earned after you cross question 6. RIGHT ANSWER BUTTON: int b=1000; try { Class.forName("java.sql.DriverManager"); com.mysql.jdbc.Connection c=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://local host:3306/PRO","root","12345"); com.mysql.jdbc.Statements=(com.mysql.jdbc.Statement)c.createStatement(); String a="select namefrom pro;"; String name=null;intfound=0; ResultSet rs=s.executeQuery(a); while(rs.next()) {name=rs.getString(1); found++;}
  • 9. com.mysql.jdbc.Connection c1=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://loc alhost:3306/PRO","root","12345"); com.mysql.jdbc.Statements1=(com.mysql.jdbc.Statement)c.createStatement(); String q="INSERT INTO questionsVALUES('"+name+"','"+b+"');"; s1.executeUpdate(q); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } Q2 a=new Q2(); a.setVisible(true); this.setVisible(false); WRONG OPTION BUTTON: JOptionPane.showMessageDialog(this,"SORRY,BAD LUCK."); System.exit(0); QUIT BUTTON: (TILL YOU REACH QUESTION 6.) JOptionPane.showMessageDialog(this,"YOU HAVE NOT CROSSED QUESTION 6. IF YOU QUIT YOU LOSE EVERYTHING."); try {
  • 10. Class.forName("java.sql.DriverManager"); com.mysql.jdbc.Connection c=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://local host:3306/PRO","root","12345"); com.mysql.jdbc.Statements=(com.mysql.jdbc.Statement)c.createStatement(); String a="select namefrom pro;"; String name=null;intfound=0; ResultSet rs=s.executeQuery(a); while(rs.next()) {name=rs.getString(1); found++;} com.mysql.jdbc.Connection c1=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://loc alhost:3306/PRO","root","12345"); com.mysql.jdbc.Statements1=(com.mysql.jdbc.Statement)c.createStatement(); String q="updatequestions set score='0(QUITS AT QUESTION1)' where name='"+name+"';";; s1.executeUpdate(q); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage());
  • 11. } System.exit(0); AFTER CROSSING QUESTION 6 JOptionPane.showMessageDialog(this,"CONGRATULATIONON WINNING Rs.160000"); try { Class.forName("java.sql.DriverManager"); com.mysql.jdbc.Connection c=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://local host:3306/PRO","root","12345"); com.mysql.jdbc.Statements=(com.mysql.jdbc.Statement)c.createStatement(); String a="select namefrom pro;"; String name=null;intfound=0; ResultSet rs=s.executeQuery(a); while(rs.next()) {name=rs.getString(1); found++;} com.mysql.jdbc.Connection c1=(com.mysql.jdbc.Connection)DriverManager.getConnection("jdbc:mysql://loc alhost:3306/PRO","root","12345");
  • 12. com.mysql.jdbc.Statement s1=(com.mysql.jdbc.Statement)c.createStatement(); String q="updatequestions set score='160000(QUITSAT QUESTION 10)' where name='"+name+"';";; s1.executeUpdate(q); } catch (Exception e) { JOptionPane.showMessageDialog(null,e.getMessage()); } System.exit(0); A dialog of such is displayed based on the amount you win (here,160000). FLIP BUTTON: QA1 a=new QA1(); a.setVisible(true); this.setVisible(false);
  • 13. Here, the actual question in form “Q1” is replaced by an alternate question in form “QA1”. To stop “FLIP” from appearing multiple times the following code is used in every form’s “correct answer buttons”: a.setVisible(true); this.setVisible(false); Q2 acd=new Q2(); acd.b1.setVisible(false); Q3 aa=new Q3(); aa.b1.setVisible(false); Q4 ab=new Q4(); ab.b1.setVisible(false); Q5 ac=new Q5(); ac.b1.setVisible(false); Q6 ad=new Q6(); ad.b1.setVisible(false); Q7 ae=new Q7(); ae.b1.setVisible(false); Q8 af=new Q8(); af.b1.setVisible(false); Q9 ag=new Q9(); ag.b1.setVisible(false); Q10 ah=new Q10(); ah.b1.setVisible(false); Q11 ai=new Q11(); ai.b1.setVisible(false); Q12 aj=new Q12(); aj.b1.setVisible(false); Q13 ak=new Q13(); ak.b1.setVisible(false); Q14 al=new Q14(); al.b1.setVisible(false); Q15 am=new Q15(); am.b1.setVisible(false);
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 25. CONCLUSION Kaun BanegaCrorepati (Who will become a Millionaire; popularly known as KBC) is an Indian television game show originally aired on Star Plus commissioned by the programming team of Sameer Nair and Tarun Katial. While based on the UK game show Who Wants to Be a Millionaire?, KBC intersperses the playing of the game with Bollywood style musicalnumbers and other entertainment. This app offers the users, rather gamers, a virtual experience like “who wants to be a millionaire?” or ” Kaun Banega Crorepati ”with a parallel sector of it improving the G.K of the player. Itcan played by anyoneall they need to do is just type their name and get on an answering streak.