Professional Documents
Culture Documents
INVESTIGATORY
PROJECT
ON
E-AUTOMOBILE
SHOPPING
Gender:- Male
School:- J.N.V. Mundali, Cuttack
Examination:- A.I.S.S.E.
Session:- 2014-15
Roll No.:-
Certificate
Sign. of Examiner
ACKNOWLEDGEMENT
Sign. of Student
CONTENTS
1. Introduction
1.1 Purpose
1.2 Scope
1.3 Hardware & Software Requirements
2. Overall Description
2.1 Goals of Proposed System
2.2 Background
2.3 User Characteristics
2.4 Constraints
3. Entity Relationship Diagram
4. Database Design
5. Snapshots & Programming Code
6. Conclusion
7. Bibliography
1. Introduction
1.1) Purpose
• The Software is for the online shopping of automobiles.
1.2) Scope
This software can be downloaded by anyone for to sit
in their homes and get the automobile of their choice
through the internet.
1.3 ) Hardware & Software Requirements
Hardware Requirements
Processor- P4 or more
Software Requirements
OS – Windows Xp or more/Linux
NetBeans 5 or more
MySQL Server
2. Overall Description
2.1) Goals of proposed system
1. Planned approach towards working: -
The data will be stored properly in data stores, which will help in retrieval of
information as well as its storage.
2. Accuracy: -
The level of accuracy in the software will be higher.
3. Reliability: -
The reliability of the proposed application will be high due to the above stated
reasons. The reason for the increased reliability of the software is that now there
would be proper storage of information.
4. No Redundancy: -
In the proposed software utmost care would be that no information is repeated
anywhere, in storage or otherwise. This would assure economic use of storage
space and consistency in the data stored.
5. Easy to Operate: -
The software should be easy to operate and should be such that user would feel
comfortablewith the software.
2.2) Background
E-automobile shopping is software where use can get the products of their through
internet sitting at their homes. Software provides Facilities like:-
Facility for home delivery through the address given by the user.
Recording information about the products that are purchased by the user.
These are the various jobs that need to be done before purchasing an
automobile by the customer.
All these works are done on by going to the showroom and filling purchase
application on paper.
2.4) Constraints
• GUI is only in English.
E-R Diagram
EID
AMOUNT
NAME
PRODUCT
Customer
MAIL ADDRESS
PHONE PASSWORD
Database Design
customer Table:
LOGIN PAGE SNAPSHOT
while (rs.next())
{ nm=rs.getString("name");
pwd=rs.getString("password");
}
if(pass.equals(pwd) && name.equals(nm))
{
hom.setVisible(true);
this.setVisible(false);
}
else { jOptionPane1.showMessageDialog(null,"wrong user id or password","Message",1);
}}
catch(Exception e)
{ e.printStackTrace(); }
}
IF PASSWORD OR NAME INCORRECT MESSAGE WILL APPEAR
} }
try{
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb","root","system");
Statement st= con.createStatement();
int x=st.executeUpdate("update customer set amount="+amount+",product='"+prod+"'
where eid="+id+";");
if (x!=0){System.out.println("data updated");}
else{System.out.println("data updating failed");}}
catch(Exception e)
{
e.printStackTrace();
}
checkout chk=new checkout();
chk.setVisible(true);
this.setVisible(false);}
int id=Integer.parseInt(jTextField1.getText());
if (jCheckBox1.isSelected())
{
amount=amount+3000000;
prod=prod.concat("FERRARI ENZO") ;
}
if (jCheckBox2.isSelected()){
amount=amount+4500000;
prod=prod.concat("\n FERRARI RC7");
}
if (jCheckBox3.isSelected()){
amount=amount+20000000;
prod=prod.concat("\n FERRARI GT"); }
if (jCheckBox4.isSelected()){
amount=amount+5500000;
prod=prod.concat("\n FERRARI SPYDAR"); }
try{
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb","root","system");
Statement st= con.createStatement();
int x=st.executeUpdate("update customer set amount="+amount+",product='"+prod+"'
where eid="+id+";");
if (x!=0){System.out.println("data updated");}
else{System.out.println("data updating failed");}}
catch(Exception e)
{
e.printStackTrace();
}
checkout chk=new checkout();
chk.setVisible(true);
this.setVisible(false);
}
int id=Integer.parseInt(jTextField1.getText());
if (jCheckBox1.isSelected())
{
amount=amount+20000000;
prod=prod.concat("BMW R8") ;
}
if (jCheckBox2.isSelected()){
amount=amount+3500000;
prod=prod.concat("\n BMW I3");
}
if (jCheckBox3.isSelected()){
amount=amount+4000000;
prod=prod.concat("\n BMW M4 "); }
if (jCheckBox4.isSelected()){
amount=amount+15000000;
prod=prod.concat("\n BMW ITALIA"); }
try{
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb","root","system");
Statement st= con.createStatement();
int x=st.executeUpdate("update customer set amount="+amount+",product='"+prod+"'
where eid="+id+";");
if (x!=0){System.out.println("data updated");}
else{System.out.println("data updating failed");}}
catch(Exception e)
{
e.printStackTrace();
}
checkout chk=new checkout();
chk.setVisible(true);
this.setVisible(false);
// TODO add your handling code here:
}
try{
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb","root","system");
Statement st= con.createStatement();
int x=st.executeUpdate("update customer set amount="+amount+",product='"+prod+"'
where eid="+id+";");
if (x!=0){System.out.println("data updated");}
else{System.out.println("data updating failed");}}
catch(Exception e)
{
e.printStackTrace();
}
checkout chk=new checkout();
chk.setVisible(true);
this.setVisible(false); }
try{
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb","root","system");
Statement st= con.createStatement();
int x=st.executeUpdate("update customer set amount="+amount+",product='"+prod+"'
where eid="+id+";");
if (x!=0){System.out.println("data updated");}
else{System.out.println("data updating failed");}}
catch(Exception e)
{
e.printStackTrace();
}
checkout chk=new checkout();
chk.setVisible(true);
this.setVisible(false);
}
int id=Integer.parseInt(jTextField1.getText());
if (jCheckBox1.isSelected())
{
amount=amount+8700000;
prod=prod.concat("HONDA CBR") ;
}
if (jCheckBox2.isSelected()){
amount=amount+6800000;
prod=prod.concat("\n HONDA YR8");
}
if (jCheckBox3.isSelected()){
amount=amount+4500000;
prod=prod.concat("\n HONDA CX1"); }
if (jCheckBox4.isSelected()){
amount=amount+30000000;
prod=prod.concat("\n REPSOL HONDA"); }
try{
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb","root","system");
Statement st= con.createStatement();
int x=st.executeUpdate("update customer set amount="+amount+",product='"+prod+"'
where eid="+id+";");
if (x!=0){System.out.println("data updated");}
else{System.out.println("data updating failed");}}
catch(Exception e)
{
e.printStackTrace();
}
checkout chk=new checkout();
chk.setVisible(true);
this.setVisible(false);
}
CHECKOUT PAGE SNAPSHOT
Bibliography
www.icbse.com
www.w3schools.com
www.stackoverflow.com
Complete reference of SQL
Informatics Practices of class XII (By Sumita
Arora)
Online shopping sites like:-
Amazon,jabong,flipkart,etc.