Professional Documents
Culture Documents
Chasify Project Report New
Chasify Project Report New
Project Report
On
“Cashify”
SUBMITTED BY
Mr. Nikhil T. Pardhi
Guided By
Prof.Syed Zaki
BIT Ballarpur
2022 - 2023
1
Certificate
This is to certify that, the project entitled “Cashify”. is record of project done
of the MCA-I SEM (II) and that the project has not been previously formed
the basis for the award of any other Degree, Diploma, Associate Ship,
2
Declaration
To,
The Principal,
Ballarpur Institute of
TechnologyBallarpur
Respected sir,
declare that the project entitled “Cashify” completed under the guidance of
This project work is submitted for the partial fulfilment of M.C.A First
out independently and has not been duplicated or copied from other
source.
Thanking You…
Date:-
3
Acknowledgement
facility and the software’s in the computer lab which are very helpful
I also thank our Head of Department Prof. Sunil Kuntawar for their
Date:-
4
Index
Topics Page
number
INTRODUCTION
1. Introduction & Objective 7
2. Description 8
3. Preliminary System Analysis 9
REQUIREMENTS & SCOPE
4. Software and Hardware Requirement 11
Specification
5. Module specifications (Scope) 11
5
INTRODUCTION
AND OBJECTIVE
6
1: INTRODUCTION & OBJECTIVE
shopkeeper for buying and replacing phone without maintaining manual work. It is
quite that the system of an option is very easy and convenient for those user they are
trying to buy phone from customer. This system allows you to buy old phone and
repair phone without putting estimated thinks. The main mission is to transform the
Cashify mission is to transform the way of buying phones and repair and repair
phones online. They help you to buy or repair phones without putting manualefforts
and buy phones at good price and least efforts. Through their localized network of
professional seller across the country, they make sure you are able to buyyour old or
used gadgets in the fastest wat possible and get best experience. There are no loophole
or conditions regarding the price that is generated for customer phones and it is also
7
2: DECRIPTION
The cashify system will eliminate most of the limitation of the existing
reduction maker our system smarter than the existing system. The cashify system will
provide facility to user for Buying phone without putting estimation process onbrain
the shopkeeper will use this application to calculate accurate price of phone as per
And so software will store detail about the customer who want to sell phone to
shopkeeper. The application will store details ofcustomer like personal information,
process for user, Buy phone as well as or repair phone process through this new
system.
8
3: PRELIMINARY SYSTEM ANALYSIS
The existing system work manually. The existing system has got lot of intricacies
within itself and need lot of human effort and paper works. It involves hand written
records store into various register. The shopkeeper are also maintaining record
manually like price of device part of mobile phones and repairing charger. It’s require
a lot of times are well or manpower. So the task of maintaining then increase
9
REQUIREMENTS
AND SCOPE
10
4: SOFTWARE AND HARDWARE REQUIREMENT SEPECIFICATION
Software tools
o Log in: When the shopkeeper will be need to buy or repair phone. So they will login
application through contact and password details.
o Registration: Once the shopkeeper will log in they will registration for customer.In
registration they will ask some general details to customer, like name, contact
email, etc.
11
o Profile: In this if user wants to change some details or wants to fill details so they
can fill or update details.
o Buy smartphones: The customer wants to sell phone so shopkeeper will use this
option to take some details about phone and calculate what will be the actual
price of that old phone.
o Repair smartphone: The shopkeeper they will use this option for calculating the
actual repairing charges of phone without putting manual or brain efforts to find
out the repairing charges.
o About: In this the user wants to know about this platform they can use this option
for knowing about structure operation.
o Help: If the shopkeeper or user will facing same technical issues with application
so they can use this option to connect with technical support team.
12
ANALYSIS AND
DESIGN
13
6. Use case Diagram:
14
7. Activity Diagram
15
Activity Diagram for Buy Phone
16
8: Class Diagram:
17
9: Module Hierarchy Diagram
18
ER Diagram:
19
Sequence Diagram:-
Collaboration Diagram
20
10: Table specifications (Database design)
2 Last_name Varchar - 10
3 Mobile_No Varchar - 12
4 E-mail Varchar - 20
5 Password varchar - 20
21
Table name: Cash on Payment
22
Table name: Address Table
5 CVC Varchar 5
Not null
6 User_id Varchar Not null 10
23
Table Name: UPI id
24
11: Data Dictionary
Sr. Field Name Type Siz Key Constrai Description Table
No e nt Name
s
1 User_id varchar 5 Primary Not null Id number User
Key Registratio
n
2 First_Name Varchar 10 - Not null User name User
Registratio
n
3 Last_name Varchar 12 - Not null User User
lastname Registratio
n
4 Mobile_no Varchar 20 - Not null Mobile no User
Registratio
n
5 E-mail varchar 20 - Not null User email User
Registratio
n
6 Model varchar 15 - Not null Mobile Phone
Model Details
7 Price Varchar 15 - Not null Mobile Price Phone
Details
8 Touch_screen Varchar 15 - Not null Screen Touch Phone
Details
9 Receive_call Varchar 15 - Not null Receive Call Phone
Details
10 Brand_warant Varchar 15 - Not null Brand Phone
y Warranty Details
11 Battery_health Varchar 15 - Not null Mobile Phon
Battery e
health Detai
ls
12 Screen_orgina Varchar 15 - Not null Mobile Phone
l Screen Details
13 Body_damage Varchar 15 - Not null Mobile Phone
Damaged Details
14 Phone_bill Varchar 15 - Not null Mobile Bill Phone
Details
15 Cashpay_id Int 11 Primary Not null Not null Cash
Key Payment Id payment
16 price Varchar 20 - Not null Mobile Price Cash
payment
25
17 Contact Varchar 20 - Not null User Cash
Contact payment
no
19 User_id Varcha 10 Foreign Not null Id number Cash
r key payment
20 action Varcha 10 - Not null Cash
r payment
21 Model varchar 20 - Not null Repairing Repair
Model Mobile
27
USER MANUAL
28
12: User Interface Screens (Input)
Login page:-
29
Customer Registration Page:-
30
Mobile Brand Page:-
31
Repair phone
32
Payment:
33
14. Sample Code Page
Login Page Code
import
java.awt.Component;
import
java.awt.EventQueue;
import javax.swing.JFrame;
importjavax.swing.JPanel;
import
javax.swing.JPasswordField
;
import javax.swing.border.EmptyBorder;
import
com.mysql.cj.protocol.Resultset;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import
java.awt.Font;
import
java.awt.Image;
import
javax.swing.JTextField; import
javax.swing.Icon; import
javax.swing.ImageIcon; import
javax.swing.JButton; import
java.awt.event.ActionListener;
importjava.sql.Connection;
import java.sql.DriverManager;
import
java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import
java.awt.event.ActionEvent;
import java.awt.SystemColor;
import
java.awt.event.KeyAdapter;
import
java.awt.event.KeyEvent;
import
java.awt.event.MouseAdapter;
import
java.awt.event.MouseEvent;
import
javax.swing.SwingConstants;
import java.awt.Color;
34
public class Login extends
JFrame {JPanel
contentPane;
JTextField txtcontact1;
privateJTextField txtpass1;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new
Runnable() {public void run() {
try {
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
/**
* Create the frame.
*/
public Login() {
setFont(new Font("Lucida Fax",
Font.BOLD, 15));setTitle("Cashify");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 826, 638); contentPane = new JPanel();
contentPane.setBackground(new Color(211, 211, 211));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
35
JLabel lblNewLabel_1 = new JLabel("Login User");
lblNewLabel_1.setFont(new Font("Comic Sans MS",
Font.BOLD, 23));lblNewLabel_1.setBounds(368, 113, 149, 33);
contentPane.add(lblNewLabel_1);
txtpass1 = new
JPasswordField();
txtpass1.setBounds(380, 266, 197,
33); contentPane.add(txtpass1);
txtpass1.setColumns(10);
btnNewButton.setBackground(SystemColor.activeCaptionBorder);
btnNewButton.addActionListener(new ActionListener() {
public void
actionPerformed(ActionEvent e) {
String Contact=txtcontact1.getText();
String Pass=txtpass1.getText();
if(txtcontact1.getText().length()>=3 &&
txtpass1.getText().length()>=3)try {
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/cashify","root","");
PreparedStatement st= (PreparedStatement)
conn.prepareStatement("Select contact,password from user where contact=? and password=?");
36
st.setString(1,Co
ntact);st.setString(2, Pass);
ResultSet
rs=st.executeQuery();
if(rs.next()) {
details");
}
}
JOptionPane.showMessageDialog(btnNewButton, "Please
37
} catch (SQLException e1) {
// TODO Auto-generated
catch block
e1.printStackTrace();
}
else
{
JOptionPane.showMessageDialog(btnNewButton, "Please Enter
Login
Details"); }
}
});
btnNewButton.setFont(new Font("Comic Sans MS", Font.BOLD, 18));
}
}
38
Registration page:
import
java.awt.EventQueue;
import
java.lang.Integer;
import javax.swing.JFrame;
import javax.swing.JPanel; import
javax.swing.border.EmptyBorder;
importjavax.swing.JLabel;
import javax.swing.JOptionPane;
contentPane;
private JTextField txtname;
private JTextField
txtlname; JTextField
txtcontact;
private
JTextField txtemail;
privateJTextField txtpass;
JButton btnregister;
JLabel lblnameerror;
39
JLabellblpasserror;
JLabel
lblemailerror;
JLabel
lbllnameerror;
JLabel
lblcontacterror;
JCheckBox
chkconfirm;
String NAME_PATTERN="[A-
Za-z]*";String
CONTACT_PATTERN="[0-9]*";
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new
Runnable() {public void run() {
try {
Registration frame = new Registration();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
/**
* Create the frame.
*/
}
else {
lblnameerror.setText("Enter Correct Name");
}
}
public void lname() {
String NAME_PATTERN="[A-Za-z]*";
if(txtlname.getText().matches(NAME_PATTERN)&& txtlname.getText().length()>=3 )
{
lbllnameerror.setText("");
40
}
else {
lbllnameerror.setText("Enter Correct lName");
}
}
public void contact() {
String CONTACT_PATTERN="[0-9]*";
if(txtcontact.getText().length()==10 &&
txtcontact.getText().matches(CONTACT_PATT
ERN) )
{
lblcontacterror.setText("");
}
else {
lblcontacterror.setText("Enter Correct contact");
}
}
}
else {
lblemailerror.setText("Enter Correct email");
}
}
}
else {
lblpasserror.setText("Enter Correct Password");
}
41
public void check()
{
String EMAIL_PATTERN =
"^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
if ( txtname.getText().matches(NAME_PATTERN) && txtname.getText().length()>=3
&&txtlname.getText().matches(NAME_PATTERN)&& txtlname.getText().length()>=3
&&txtcontact.getText().length()==
10 &&txtcontact.getText().matches(CONTACT_PATTERN)
&&
txtemail.getText().length()>=12 &&
txtemail.getText().matches(EMAIL_PATTERN)
&&txtpass.getText().length()>=8)
{
btnregister.setEnabled(true);
}
e
l btnregister.setEnabled(false)
s
e
public Registration() {
setFont(new Font("Dialog",
Font.BOLD, 15));setType(Type.POPUP);
setTitle("Cash
ify");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 925, 666); contentPane = new JPanel();
contentPane.setBackground(new Color(240, 255, 240));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
}
}
});
txtcontact.addActionListener(new ActionListener()
{ public void
actionPerformed(ActionEvent arg0) {
}
});
txtcontact.setBounds(417, 235,
188, 41);contentPane.add(txtcontact);
txtcontact.setColumns(12);
try {
Class.forName("com.mysql.cj.jdbc.Driver"
);Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/cashify","root","");
String query="insert into registration
values(NULL,?,?,?,?,?)";
PreparedStatement ps=conn.prepareStatement(query);
ps.setString(1,
txtname.getText());ps.setString(2,
txtlname.getText());
ps.setString(3,
txtcontact.getText());ps.setString(4,
txtemail.getText());
ps.setString(5, txtpass.getText());
int i=ps.executeUpdate();
ps.close();
conn.close();
Component btn1 = null;
JOptionPane.showMessageDialog(btn1,
"Registered
Successfully int
.....................................
");
44
res=JOptionPane.showConfirmDialog(
lblNewLabel_5,"Are You want Login
","Confirmation Box",
JOptionPane.YES_NO_OPTION Registration R= new Registration();
,JOptionPane.QUESTION_MESSAG R.setVisible(false);
E);
}
});
btnregister.setFont(new Font("Segoe UI",
Font.BOLD, 19));btnregister.setBounds(384, 473, 170, 48);
contentPane.add(btnregister);
}
});
45
lblrlogin.setForeground(Color.BLUE);
lblrlogin.setFont(new Font("Lucida Fax",
Font.BOLD, 17));
lblrlogin.setBounds(437, 531, 70, 35); contentPane.add(lblrlogin);
}
}
});
chkconfirm.setBounds(490, 417,
93, 28);contentPane.add(chkconfirm);
46
JLabel lblNewLabel = new JLabel("Enter Detail is
Correct?");lblNewLabel.setFont(new Font("Tahoma",
Font.BOLD, 14)); lblNewLabel.setBounds(314, 420, 170, 25);
contentPane.add(lblNewLabel);
}
}
47
LIMITATIONS AND
BIBLIOGRAPHY
48
15: Limitations:
The shopkeeper can work on limited issues if the customer has more
issues so theshopkeeper will confuse to estimate the price of phones or
repairing charges of phones.
Sometimes the shopkeeper will be not sure user has given the correct
informationor not.
The user can work on specific models only and specific issues only.
49
16: Bibliography:
• www.youtube.com
• www.javatpoint.com
• www.w3school.com
• www.geeksforgeeks.com
• www.tutorialspoint.com
• www.programiz.com
• www.learnjavaonline.com
• www.couseera.org
• www.developers.com
• www.udemy.com
50