ip project on sales agency

21
Vidhya Niketan Public School A Project Report On Shopping cart For AISSCE 2015-2016 Examination As a part of the Informatics Practices Course(065) SUBMITTED BY: Sharguru.R M216/46067/0019 Under the Guidance of: Mrs.Rashitha Banu PGT-Informatics Practices 1

Upload: usha-pachu

Post on 10-Apr-2016

22 views

Category:

Documents


1 download

DESCRIPTION

informatics project class 12

TRANSCRIPT

Page 1: Ip Project on sales agency

Vidhya Niketan Public School

A Project Report

On

Shopping cart

For

AISSCE 2015-2016 Examination

As a part of the Informatics Practices Course(065)

SUBMITTED BY:

Sharguru.R

M216/46067/0019

Under the Guidance of:

Mrs.Rashitha Banu

PGT-Informatics Practices

1

Page 2: Ip Project on sales agency

CONTENTS

S.NO TITLE PAGE NO1 SOFTWARE ANALYSIS 62 INTRODUCTION 8

i) FORM-1CODING

9

ii) FORM-2 CODING

10

iii) FORM-3iv) CODING

13

3 MySQLTABLE-1 15

4 RESULT 165 BIBLIOGRAPHY 17

2

Page 3: Ip Project on sales agency

Declaration

I declare that this project “Sales Agency” done at Vidhya Niketan Public School is a record of project work submitted by me for the partial fulfilment of the AISSC exam of CBSE under the supervision and guidance of Mrs Rashitha Banu –(Informatics Practices).

The Project is genuine and not a reproduction of any project previously done or submitted.

Sharguru.R

M216/46067/0019

3

Page 4: Ip Project on sales agency

Acknowledgement

I extend my sincere thanks to Vidhya Niketan Public School which provided me with opportunity to fulfil my wish and achieve my goal.

I would like to express deep debt to Mrs Rashitha Banu (PGT-Informatics Practices), project guide for her vital suggestions, meticulous guidance and constant motivation which went a long way in the successful completion of this project.

I cannot move on without thank beloved principal Mrs for creating the required academic environment which made my task appreciable.

On a moral personal note, my deepest appreciation and gratitude to my beloved parents, who with unrelenting encouragement and support

- Sharguru.R

4

Page 5: Ip Project on sales agency

Certificate

This is to certify that the Dissertation entitled, Library Management is a bonafide work done by Master Aaditya Shah of class XII Commerce during the academic session 2013-2014 is partial fulfillment of CBSE’s AISSCE Examination 2014 and has been carried out under my direct supervision and guidance. This report or a similar report on the topic has not been submitted for any other examination and does not form a part of any other course undergone by the candidate.

Signature of Teacher

(Mr. Sanjay. T. Parmar)

Signature of Principal

(Mr. MahendraSinh Vihol)

Seal of the school

SYSTEM ANALYSIS5

Page 6: Ip Project on sales agency

EXISTING SYSTEM:

System Analysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. Here the key question is-what all problems exist in the present system? What must be done to At the problem? Analysis begins when a user or manager begins a study A the program using existing system.

During analysis, data collected on the various files, decision points and transactions handled by the present system. Training, experience and common sense are required for collection of relevant information needed to develop the system. The success of the system depends largely on how clearly the problem is defined, thoroughly investigated and properly carried out through the choice of solution.

A good analysis model should provide not only the mechanisms of problem understanding but also the frame work of the solution. Thus, it should be studied thoroughly by collecting data about the system. Then the proposed system should be analyzed thoroughly in accordance with the needs.

System analysis can be categorized into four parts:

✓ System planning and initial investigation

✓ Information Gathering

✓ Applying analysis tools for structured analysis

✓ Feasibility study

✓ Cost/ Benefit analysis.

In our existing system, all the transaction of books are done manually, so taking more time transaction like borrowing a book or returning a book and Aso for searching of members and books. Another major

disadvantage is that preparing the list of books borrowed and the available books in the library will take more time, currently a one day process for verifying all records. So after conducting the feasibility study we decided A make a computerized library management system.

6

Page 7: Ip Project on sales agency

MINIMUM HARDWARE REQUIREMENTS:

Processor : Pentium IV or better RAM : 128 MB or more Hard Disk : 20GB Monitor : Any Key Board : 122 Keys

MINIMUM SOFTWARE REQUIREMENTS:

Operating System : Windows 98, Windows XP, Windows 7 or better Language : Java 7 Runtime Environment or better Front End : Netbeans 7.3.1 Back End : MySQL server 5.0

INTRODUCTION

7

Page 8: Ip Project on sales agency

In online marketing, a shopping cart is a piece of e-commerce software on a web server that allows visitors to an Internet site to select items for eventual purchase, analogous to the American English term "shopping cart." In British English, it is generally known as a shopping basket, almost exclusively shortened on websites to "basket."

The software allows online shopping customers to accumulate a list of items for purchase, described metaphorically as “placing items in the shopping cart” or “add to cart.” Upon checkout, the software typically calculates a total for the order, including shipping and handling (i.e., postage and packing) charges and the associated taxes, as applicable.

SYSTEM INTERFACE

Main page:

8

Page 9: Ip Project on sales agency

Coding :

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)

{

customer s=new customer();

s.setVisible(true);

}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)

{

verify s=new verify();

s.setVisible(true);

}

Tracking Page:

9

Page 10: Ip Project on sales agency

Coding:

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)

{

String name=jTextField2.getText();

if (name.isEmpty())

{

jTextField2.setText("");

jTextField3.setText("");

JOptionPane.showMessageDialog

(this,"Enter the Mobile No");

}

Else

try

10

Page 11: Ip Project on sales agency

{

Class.forName("java.sql.DriverManager");

Connection con = (Connection)

DriverManager.getConnection("jdbc:mysql://localhost:3306/project","root", "123");

Statement stmt = (Statement) con.createStatement();

String query="SELECT ITEM,CONTACT,QUANTITY FROM CUSTOMER WHERE NAME='"+name+"';";

ResultSet rs=stmt.executeQuery(query);

if (rs.next())

{

String item = rs.getString("item");

String quantity = rs.getString("quantity");

String contact = rs.getString("contact");

jTextField4.setText(item);

jTextField5.setText(quantity);

jTextField3.setText(contact);

}

else

JOptionPane.showMessageDialog

(this,"Sorry!No such order under the entered ");

}

catch (Exception e)

{

11

Page 12: Ip Project on sales agency

JOptionPane.showMessageDialog(this, e.getMessage());

}

jTextArea1.setText("Your product will be delivered after 5 days from your date of delivery");

}

Order Page:

12

Page 13: Ip Project on sales agency

Coding:

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)

String item=jTextField1.getText();

int quantity=Integer.parseInt(jTextField2.getText());

String Code=jTextField3.getText();

String name=jTextField4.getText();

String phone=jTextField5.getText();

try

{

Class.forName("java.sql.DriverManager");

Connection con = (Connection)

DriverManager.getConnection

("jdbc:mysql://localhost:3306/project",

"root", "123");

13

Page 14: Ip Project on sales agency

Statement stmt = (Statement) con.createStatement();

String query="INSERT INTO customer VALUES('"+item+"','"+quantity+"','"+Code+"','"+name+"','"+phone+"');";

stmt.executeUpdate(query);

}

catch(Exception e)

{

JOptionPane.showMessageDialog (this, e.getMessage());

}

JOptionPane.showMessageDialog(this,"Your product has been ordered successfully");

Customer Table - MySql :

14

Page 15: Ip Project on sales agency

Coding:

Create table customer(

Item varchar(30),

Quantity int(11),

Code varchar(8),

Name varchar(30),

Contact int(11) );

Output :

15

Page 16: Ip Project on sales agency

CONCLUSIONThis was an effort to develop a simple Shopping Cart System which proved to be helpful in accessing various products from different parts of the world .

The project has been created and submitted under the supervision of respective subject teacher.

Thank You...

16

Page 17: Ip Project on sales agency

BIBLIOGRAPHY :

❖ Informatics Practices Class XII - By Sumita Arora ❖ Netbeans Forums

❖ Google.com

❖ Stackoverflow.com

❖ Sourcecode.in

❖wikipedia.com

17