You are on page 1of 17

SCOOPY -SCOOP

In partial fulfillment of the course Informatics Practices of Class XII for the academic
year 2016 – 2017 by:

Name of Student : Amisha, Mohini, and Chandana


Class / Sec : XII / D

Roll No :

Department of Computer Science


Army Public School
RK Puram, Secunderabad

ARMY PUBLIC SCHOOL, RK Puram, Secunderabad

Certificate

This is to certify that the project entitled “scoopy scoop” has been submitted by

1. AMISHA YADAV
2. MOHINI
3. CHANDANA

1
In partial fulfillment of the course Informatics Practices of Class XII for the academic year
2016 - 2017 to the Department of Computer Science, Army Public School,
RK Puram Secunderabad, Affiliated to CBSE, New Delhi is a record of bonafied work
carried out under my guidance and supervision.

The results embodied in this project report have not been submitted to any other Institute for
the award of any Degree or Diploma.

Guide Name: P. LAKSHMI


Designation : PGT (IP) Head of the Department

External :

Acknowledgement

At the outset I am thankful to our school for giving me the opportunity to prepare the project
report of “Scoopy Scoop” using Net Beans Java IDE as front end and MySQL as back end.

We would like to express our gratitude to all our teachers and our laboratory instructor, who
have constantly guided us in the completion of the project work.

Thanking one and all

Yours sincerely

2
Abstract

Our Project “scoopy scoop” is developed in NetBeans Java IDE as front end and MySQL
Relational Database Management System as back end, that automates the process by making
it convenient and effective to work in a user friendly environment.

Our “Scoopy Scoop” application allows the user to select the ice-creem flavor that they want
to have. The user then has to select weather he/she wants to have a cup of ice-cream or a cone
of ice-cream. After that they have to write the number of cups or cones they want to have of a
particular flavor. Then finally they have to click on bill now to get the total amount he/she has
to pay.

3
Contents

S.No. Topic Page Numbers

01. Problem Statement 6


02. System Requirements 7
03. Technology Used 8
a) NetBeans Java IDE
b) MySQL
04. Data Design 9
05. GUI Creation 11
06. Database Connectivity 13
07. Coding 13-21
08. Implementation 22
09. Conclusion 25
10. Bibliography 25

4
Problem Statement

After advent of Information Technology, every operation small or large is made automated to
facilitate both user and administrators to work in a user friendly environment giving a smooth
and efficient completion of the transaction.

Our “Scoopy Scoop” application allows the user to select the ice-creem flavor that they want
to have. The user then has to select weather he/she wants to have a cup of ice-cream or a cone
of ice-cream. After that they have to write the number of cups or cones they want to have of a
particular flavor. Then finally they have to click on bill now to get the total amount he/she has
to pay then they can enjoy the tasty flavors of our ice-creams.

5
System Requirements

HARDWARE :

SOFTWARE :

 Operating System : Windows 7 Professional


 RDBMS : MySQL. 5.1
 Front End Tool : NetBeans Java IDE 6.5.1

6
Technology Used

NetBeans Java IDE

NetBeans IDE is a free, open-source, cross-platform IDE (Integrated Development


Environment) with built-in support for Java Programming Language.

Characteristics of Java
 Object-Oriented Language
 Platform Independent
 Write Once Run Anywhere (WORA)
 Highly Secured
 Built-in Graphics and Support Multimedia

MySQL

MySQL is freely available open source Relational Database Management System (RDBMS)
that uses Structured Query Language (SQL). Operating on client/server architecture.

Features of My SQL
 High Speed and Low Cost
 Portable, Scalable, Reliable
 Secured
 Localized and Good Connectivity

7
Data Design

8
GUI Creation

 Open NetBeans IDE 6.5.1


 File  New Project  Select Java Category  Select Java Application
 Name the Project Click Finish
 Right Click on the Project in the Project Window  Select New  Select JFrame
Form
 Name the JFrame as HOME Click Finish
 Drag and Drop the Swing controls for GUI Design`

9
Database Connectivity

 Right Click on the Library folder of the Project in the Project Windows
 Select JAR / Folder
 Browse through the absolute path : C:\Program Files\NetBeans 6.5.1\
ide10\modules\ext\mysql-connector-java-5.1.6-bin.jar , now click open.

10
Coding

import java.sql.*;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;

public class flavour extends javax.swing.JFrame {


int amt=0;
void check(String y)
{
String x=(String)jList1.getSelectedValue();
int n=0,qty=0;
try
{
Class.forName("java.sql.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost/scoopy_scoop","root","admin
");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select cup from flavour where name='"+x+"';");
while(rs.next())
n=rs.getInt(1);
JOptionPane.showMessageDialog(null,"It Cost U Rs. "+n+" per Cup");
qty=Integer.parseInt(JOptionPane.showInputDialog("Enter the Number of "+x+" "+y+"
you want ?"));
amt=amt+(n*qty);
if(x.equals("vanilla"))
jTextArea1.append(qty+" "+x+" "+y+"\t\tRs. "+(n*qty)+"\n");
else
jTextArea1.append(qty+" "+x+" "+y+"\tRs. "+(n*qty)+"\n");
}
catch(Exception e)

11
{
JOptionPane.showMessageDialog(null,"Error : "+e);
}
}

public flavour() {
initComponents();
}

private void formWindowOpened(java.awt.event.WindowEvent evt){


jTextArea1.setEditable(false);
DefaultListModel m=new DefaultListModel();
try
{
Class.forName("java.sql.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost/scoopy_scoop","root","admin
");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select name from flavour;");
while(rs.next())
m.addElement(rs.getString(1));
jList1.setModel(m);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error : "+e);
}
}

12
SUBMIT BUTTON

JOptionPane.showMessageDialog(null," Receipt\n---------------------------\nPay Rs.


"+amt+" /-\n\nThank You!...");
jList1.clearSelection();

private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {


if(jCheckBox1.isSelected()==true)
{
check("Cone");
jCheckBox1.setSelected(false);
}// TODO add your handling code here:
}

private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {


if(jCheckBox2.isSelected()==true)
{
check("Cup");
jCheckBox2.setSelected(false);
} // TODO add your handling code here:
}

13
Implementation

1. After selecting the destination the user will be asked for their passport number.

2. The price per head will be shown after accepting the passport number.

3.Now the user will be asked to enter the number of people travelling.

14
4. The total amount to be paid will be displayed in a message dialog box.

15
Conclusion

Our Project “Disneyland” is developed in Net Beans Java IDE as front end and My SQL
Relational Database Management System as back end that automates the process by making it
convenient and effective to work in a user friendly environment.

Our “Disney land” application allows the user to select their destination. The user has to then
click on hotel they desire to stay in, after which they will be asked for their passport number.
Then they will be informed about the amount per head. Then they will be asked about the
number of people travelling. Finally the total amount to be paid will be shown and they can
enjoy their tour.

Our “Disneyland” application is partially done for the fulfillment of the course Informatics
Practices of Class XII for the academic year 2016 - 2017 which can be further improved or
extended to have a record of all the customers for the loyalty offers.

16
Bibliography

 Informatics Practices Class XI and Class XII by CBSE

---0o0---

17

You might also like