SlideShare a Scribd company logo
1 of 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.

More Related Content

What's hot

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
 

What's hot (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
 

Viewers also liked

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
 

Viewers also liked (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
 

Similar to 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
 

Similar to 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
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.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.