1. Payroll system
2. Online shopping
3. Online voting system
4. Banking system
ONLINE VOTING
SOFTWARE REQUIREMENT SPECIFICATION:
1.INTRODUCTION:
To perform an project for online voting using visual basic to calculate votes in
online by selecting the nominees and display the results after voting .
1.1 Purpose:
The purpose of this document is to present a detailed description of the online voting
system.It will explain the features of the system, the interfaces provided by the system
and what the system will do.
1.2 Scope:
The scope of this project is to perform online voting. This is designed to display the
nominees to select for the customers to vote and display the result accurately and easily.
To store the databases of the nominees and the result, using MS-access.
1.3 Reference:
IEEE. IEEE Std 830-1998 IEEE Recommended Practice for Software
Requirements Specifications. IEEE Computer Society, 1998.
2.OVERALL DESCRIPTION:
The application is a fully functional voting software.It consists of three
modules.In the first module the voter logins and enters into the project.In the second
module a list of nominees for voting is displayed and vote for the favourite nominee.In
the third module display the results for all the nominees and displays the nominee with
the leading votes.
3. SPECIFIC REQUIREMENTS:
Software Requirement specification is a document that describes all the functions
of a proposed system and the constraints under which it must operate.
3.1.6 Operation:
We should perform online voting in various operating environments. We perform
it by using VB and .net etc but its back end must be only MS - access for storing the
databases of the nominees and the result.
3.3.2 Availability
The voting server system is stable for voting at all times. Databases can
act as a server to display the results at all times.
3.3.3 Security
The system should require a valid e-mail id to login. Each and every
user should know their own email ids for their login.
3.3.4 Maintainability
The source code shall be available to the developers. Each updating
process can be added to the website and displayed simultaneously.
3.3.5 Portability
This online voting project is executable in all platforms such as internet
possessing systems.
3.3.6 Performance
:
The project well equipped with the recent networking technologies and
will result in high performance.
4.DESIGNING:
Designing phase involves many UML diagrams
UML DIAGRAMS:
4.1 Use Case Diagram
4.2 Sequence Diagram
4.3 Collaboration Diagram
4.4 Class Diagram
4.5 Activity Diagram
Login
Selection of
nominees
Calculate votes
Display votes
The use case for online voting describes the information about the
Login
Vote for nominees
Calculation of votes
Displaying the no of votes
4.2SEQUENCE DIAGRAM
DESCRIPTION:
A sequence diagram in Unified Modeling Language (UML) is a kind of
interaction diagram that shows how processes operate with one another and in what
order. It is a construct of a Message Sequence Chart.
The objects used in this sequence diagram are,
Participant
login
Display
Control
Database
7
SEQUENCE DIAGRAM
Participant
Display
login
Control
Database
Enter details
Send data
Send control
Calculate votes
Send data
Display
7: Calculate votes
Control
8: Send data
5: Send data
1: Enter details
login
Database
10
11
CLASS DIAGRAM
Display
qno
opt
nominees
*
Display_nom()
Display_vote()
Controller
name
Email id
nominees
opt
1
Participant
name
Email
id
votes
results
login()
Database
nominees
vote
1
*
results
login()
nom()
votes()
store_details()
*
login
name
Email id
1
1
login_details()
12
4.5ACTIVITY DIAGRAM:
DESCRIPTION:
It provides a way to model the workflow of a development process. An activity
represents the performance of a task on duty. It represent the execution of statement.
logi
n
Selection of
nominees
Vote for
nominees
databases
13
Display
the result
5 .PROJECT IMPLEMENTATION
CODING:
Form1:
Private Sub Command1_Click()
If Text1.Text = "" Or Text2.Text = "" Then
a = MsgBox("PLEASE FILL ALL THE REQDETAILS", vbExclamation, "WARNING")
Text1.SetFocus
ElseIf Text1.Text = "" Then
Text2.Text = ""
Else
Form3.Show
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Form2.Show
End Sub
Form2:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
End
End Sub
Private Sub Form_Load()
Set db=OpenDatabase("C:\Documentsand Settings\bhuvaneswari\Desktop\v1\mon.mdb")
Set rs = db.OpenRecordset("cricket voting")
sachin.Text = Val(rs("sachin"))
dhoni.Text = Val(rs("dhoni"))
shewag.Text = Val(rs("shewag"))
dravid.Text = Val(rs("dravid"))
If (Val(rs("sachin")) > Val(rs("dhoni")) And Val(rs("sachin")) > Val(rs("shewag")) And
Val(rs("sachin")) > Val(rs("dravid"))) Then
Text5.Text = Val(rs("sachin"))
Label6.Caption = sachin.Name
ElseIf (Val(rs("sachin")) < Val(rs("dhoni")) And Val(rs("dhoni")) > Val(rs("shewag"))
And Val(rs("dhoni")) > Val(rs("dravid"))) Then
Text5.Text = Val(rs("dhoni"))
Label6.Caption = dhoni.Name
14
Form3:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
Dim f As Integer
If Option1.Value Then
f=1
ElseIf Option2.Value Then
f=2
ElseIf Option3.Value Then
f=3
ElseIf Option4.Value Then
f=4
End If
Select Case (f)
Case 1:
rs.Edit
rs("sachin") = Val(rs("sachin")) + 1
rs.Update
Case 2:
rs.Edit
rs("dhoni") = Val(rs("dhoni")) + 1
rs.Update
Case 3:
rs.Edit
rs("shewag") = Val(rs("shewag")) + 1
rs.Update
Case 4:
rs.Edit
rs("dravid") = Val(rs("dravid")) + 1
rs.Update
End Select
MsgBox ("THANX 4 VOTING!")
Me.Hide
Form1.Show
15
End Sub
Private Sub Command2_Click()
Me.Hide
Form1.Show
End Sub
Private Sub Form_Load()
Setdb=OpenDatabase("C:\Documents and Settings\bhuvaneswari\Desktop\v1\mon.mdb")
Set rs = db.OpenRecordset("cricket voting")
End Sub
CODE:
Public class logintovote
{
private int name;
private int e-mail id;
/**
@roseuid 4D84867D0057
*/
private int logintovote()
{
}
/**
@roseuid 4D84867E0056
16
*/
Public void login_details()
{
}
}
Login
Vote
Results
INPUT
OUTPUTDESCRIPTION
Click
button
username
results
17
PROGRAM EXECUTION:
18
19
20
21
RESULT:
Thus the Online voting project was implemented using Visual Basic, Designed
using Rational Rose Software and Executed Successfully
22
PAYROLL SYSTEM
SOFTWARE REQUIREMENT SPECIFICATION:
1 INTRODUCTION:
It is an office automation software. It contains the details of an employee
such as name, designation, basic pay, HRA, DA, TA, SSS, PAG-Ibig, Daily net pay, total
net pay, no. hours worked, rate per hour, total no. of days, etch. Daily net pay can be
calculated by multiplying no.hrs worked with rate per hour. Total net pay can be
calculated by the following formula,
Total net pay=Daily net pay*(no. of days-no. of days absent)-(basic
pay+HRA+SSS+DA+TA+PAG- Ibig)
Purpose:
The purpose of this document is to present a detailed description of the Payroll
System. It will explain the purpose and features of the system, the interfaces of the
system, what the system will do, the constraints under which it must operate and how the
system will react to external stimuli. This document is intended for both the employee
and the manager of the system.
1.2 Scope:
This software system will be a Payroll Calculating System for an employee in a
large industry. This system will be designed to calculate the salary of all employees in a
firm in an easy manner. will be easily understand by all. This system can be used in large
industries and also in small industries.
1.3 Reference:
IEEE. IEEE Std 830-1998 IEEE Recommended Practice for Software Requirements
Specifications. IEEE Computer Society, 1998.
Definition
The person who works for a particular firm.
The person who maintains all employees detail.
23
Database
Field
Software Requirements
Specification
User
2. OVERALL DESCRIPTION:
The application is a fully functional payroll calculation software.It consists of
three modules.In the first module the customer logins and enters into the main menu.In
the second module the user will select either input form or output form.In the third
module the user must enter his salary details and will get the result of his salary
calculation.
Search()
Save()
Print()
Delete()
Add()
24
The administrator must also know how to use the payroll sysytem.
3. SPECIFIC REQUIREMENTS:
Specific Requirements is a document that describes all the functions of a proposed
system and the constraints under which it must operate.
System.
A good processor.
128mb RAM(minimum).
25
Visual Basic
Microsoft Access
Rational rose
Database
34 MB for software.
3.1.6 Operation:
The Payroll System has two active actors. They are employee and administrator. The
employee will be able to enter his details only. The administrator will access the entire
system. He will calculate the salary information of an employee and publish the result.
Then the employee can view his salary calculation.
Search()
Save()
Print()
Delete()
Add()
26
3.3.2 Availability:
This system will be in a specified operable and committable state at the start, when
it is called for at an unknown, i.e., a random, time.
3.3.3 Security:
This system provides protection against damage, loss, and criminal activity.
3.3.4 Maintainability:
This system can
correct defects
meet new requirements
make future maintenance easier, or
cope with a changed environment
3.3.5 Portability:
This system has the property of interoperability (i.e the system can run in any
operating system).
27
3.3.6 Performance:
The performance of the system is fast and efficient.
DESIGNING:
4. UML DIAGRAMS:
4.1 Use Case Diagram
4.2 Sequence Diagram
4.3 Collaboration Diagram
4.4 Class Diagram
4.5 Activity Diagram
4.6 Component Diagram
28
29
employeeinformation
timecardinformation
employee
purchaseorders
paymentmethoddetails
reports
administrator
managementandupdation
payrollgeneration
30
3. With the new sequence diagram selected, enter the name of the sequence diagram.
employee
automatedresponse
(administrator)
projectmanager
administrator
send details
access and update database
submit card information,hours worked,purchase orders and reports
request payment
if hourly employee then pay on hourly rate
payment for who worked more than 8 hours on friday
pay flat salary on the last day of the month
submit time card and purchase orders
pay commission based on sales
access database to notify changes
SEQUENCE DIAGRAM
3: send details
projectmanager
administrator
COLLABORATION DIAGRAM
32
administrator
employee
(from payroll)
(from payroll)
empname : string
age : integer
sex : string
address : string
name : string
age : integer
sex : string
address : string
n
1..n
work()
enterworkingdb()
receivepayment()
1..n
1..n
employeedatabase
maintaininformation()
add()
delete()
update()
assign()
1
1
projectmanagementdb
(from payroll)
empmane : string
empid : integer
projectname : string
(from payroll)
projectname : string
projectid : string
timelimit : integer
startingdate()
reoprt()
finishingdate()
changeproject()
changenumber()
CLASS DIAGRAM
33
e m p lo ye e
a d m i n i s tr a to r
p r o j e c tm a n a g e m e n t d b e m p l o y e e d b
s t a rt
lo g in
s u b m it id , t im e c a rd a n d
p a y m e n t d e t a ils
m a i n t a in e m p lo y e e i n fo
a n d a s s ig n p r o je c t
c h e c k fo r
s c h e d u le
p a y ro ll
g e n e ra t i o n
s to p
ACTIVITY DIAGRAM
34
automated
response
administrat
or
COMPONENT DIAGRAM
5. IMPLEMENTATION:
CODE GENERATION STEPS:
There are code generation properties associated with the project, the class, the roles, the
attributes, and operations. Project properties concern file name, default container, and
placement of the generated code. Class properties concern constructors etc. Operation
properties deal with the operation kind (abstract, static etc.) and allow the operation to be
made constant. The property set for roles deals with the generation of get/set methods,
visibility of methods, and the container class to be used.
1. Select the Tools:Option menu choice
35
JAVA CODE:
package payroll;
public class administrator
{
private string name;
private integer age;
private string sex;
private string address;
public projectmanagementdb theProjectmanagementdb;
/**
@roseuid 4D84867D0057
*/
public administrator()
{
}
/**
@roseuid 4D410CC6039A
*/
public void maintaininformation()
{
}
/**
36
@roseuid 4D410CD901B5
*/
public void add()
{
}
/**
@roseuid 4D410CE1005D
*/
public void delete()
{
}
/**
@roseuid 4D410CE902AF
*/
public void update()
{
}
/**
@roseuid 4D410CF7027F
*/
public void assign()
{
}
}
Coding:
FORM1: LOGIN FORM
Option Explicit
Public LoginSucceeded As Boolean
Private Sub Command2_Click()
LoginSucceeded = False
End
End Sub
Private Sub Command1_Click()
If Text1.Text = "cse" Or Text2.Text = "cse" Then
LoginSucceeded = True
Call Form2.Show
Me.Hide
37
Else
MsgBox "USERNAME PASSWORD ARE NOT MATCHING", vbExclamation,
"LOGIN"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
38
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
End Sub
Private Sub Command2_Click()
On Error Resume Next
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or
Text5.Text = "" Or Text6.Text = "" Or Text7.Text = "" Then
a = MsgBox("RECORDS NOT SAVE.. PLS COMPLETE..", vbCritical, "WARNING")
Text1.Text = ""
Text1.SetFocus
ElseIf Text1.Text <> "" Or Text2.Text <> "" Or Text3.Text <> "" Or Text4.Text <> ""
Or Text5.Text <> "" Or Text6.Text <> "" Or Text7.Text <> "" Then
Data1.Recordset.AddNew
Data1.Recordset(0) = Text1.Text
Data1.Recordset(1) = Text2.Text
Data1.Recordset(2) = Text6.Text
Data1.Recordset(3) = Text7.Text
Data1.Recordset(4) = Text8.Text
Data1.Recordset(5) = Text9.Text
Data1.Recordset(6) = Text10.Text
Data1.Recordset(7) = Text11.Text
Data1.Recordset(8) = Text12.Text
Data1.Recordset(9) = Text13.Text
Data1.Recordset(10) = Text3.Text
Data1.Recordset(11) = Text4.Text
Data1.Recordset(12) = Text5.Text
Data1.Recordset.Update
'Command6.Enabled = False
'Command2.Enabled = False
'Command3.Enabled = False
'Command5.Enabled = False
End If
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
39
Text12.Text = ""
Text13.Text = ""
End Sub
Private Sub Command3_Click()
On Error Resume Next
a = MsgBox("ARE YOU SURE?", vbYesNo, "DELETE")
If a = vbYes Then
Data1.Recordset.Delete
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
End If
'Command2.Enabled = False
Command3.Enabled = False
'Command5.Enabled = False
Text1.SetFocus
End Sub
Private Sub Command4_Click()
Form2.Show
End Sub
Private Sub Command5_Click()
On Error Resume Next
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or
Text5.Text = "" Or Text6.Text = "" Or Text7.Text = "" Then
a = MsgBox("RECORDS NOT PRINT.. TRY AGAIN..", vbCritical, "WARNING")
Text1.Text = ""
Text1.SetFocus
ElseIf Text1.Text <> "" Or Text2.Text <> "" Or Text3.Text <> "" Or Text4.Text <> ""
Or Text5.Text <> "" Or Text6.Text <> "" Or Text7.Text <> "" Then
Form5.Show
Form5.Text1.Text = Text1.Text
Form5.Text2.Text = Text2.Text
Form5.Text3.Text = Text6.Text
40
Form5.Text4.Text = Text7.Text
Form5.Text5.Text = Text8.Text
Form5.Text6.Text = Text9.Text
Form5.Text7.Text = Text10.Text
Form5.Text8.Text = Text11.Text
Form5.Text9.Text = Text12.Text
Form5.Text10.Text = Text13.Text
Form5.PrintForm
'Printer.EndDoc
End If
End Sub
Private Sub Command6_Click()
On Error Resume Next
If Data1.Recordset(0) = "" Or Text1.Text = "" Then
a = MsgBox("RECORDS NOT FOUND .. TRY AGAIN..", vbCritical, "WARNING")
Text1.Text = ""
Text1.SetFocus
Else
Data1.RecordSource = "select * from payrol where name =" & Text1.Text & " and desig
=" & Text2.Text
Text1.Text = Data1.Recordset(0)
Text2.Text = Data1.Recordset(1)
Text6.Text = Data1.Recordset(2)
Text7.Text = Data1.Recordset(3)
Text8.Text = Data1.Recordset(4)
Text9.Text = Data1.Recordset(5)
Text10.Text = Data1.Recordset(6)
Text11.Text = Data1.Recordset(7)
Text12.Text = Data1.Recordset(8)
Text13.Text = Data1.Recordset(9)
Text3.Text = Data1.Recordset(10)
Text4.Text = Data1.Recordset(11)
Text5.Text = Data1.Recordset(12)
'Command5.Enabled = True
'Command3.Enabled = False
Command2.Enabled = False
End If
End Sub
Private Sub Form_Load()
c=0
Command3.Enabled = False
Data1.Enabled = False
End Sub
Private Sub Text1_Change()
41
42
6. TESTING:
Control
Input
Output Description
If the Username and Password are
Login
Enter Username
and Password
Save
Click Save
command button.
Search
Delete
Click Search
command button.
Click Delete
command button.
Click Print
command button
43
OUTPUT SCREEN:
LOGIN FORM
44
MAIN MENU
45
46
PRINT FORM
47
RESULT:
Thus the Payroll system project was implemented using Visual Basic,
Designed using Rational Rose Software and Executed Successfully
48
49
BANKING SYSTEM
SOFTWARE REQUIREMENT SPECIFICATION:
INTRODUCTION:
1.1 Purpose:
The purpose of this document is to present a detailed description of the Banking
System. It will explain the purpose and features of the system, the interfaces of the
system, what the system will do, the constraints under which it must operate and how the
system will react to external stimuli. This document is intended for manager of the
system.
1.2 Scope:
This software will be a Online Banking System for the users in world wide. This
system will be designed to maintain the account of all users in an easy manner.This will
be easily understand by all.This system can be used in money banks.
1.3 Reference:
IEEE. IEEE Std 830-1998 IEEE Recommended Practice for Software
Requirements Specifications. IEEE Computer Society, 1998
Definition
The person who has account in the bank
The person who maintains all userss detail.
Collection of all the information monitored by this system.
A cell within a form.
A document that completely describes all of the functions
of a proposed system and the constraints under which it
must operate. For example, this document.
2.OVERALL DESCRIPTION:
2.1 Product Perspective:
50
The next chapter, the Overall Description section, of this document gives an
overview of the functionality of the product. It describes the informal requirements and is
used to establish a context for the technical requirements specification in the next chapter.
The third chapter, Requirements Specification section, of this document is written
primarily for the developers and describes in technical terms the details of the
functionality of the product.
Both sections of the document describe the same software product in its entirety,
but are intended for different audiences and thus use different language
Account creation()
Withdraw()
Deposit()
Report()
Account deletion()
The administrator must know how to view the account details of a user.
The administrator must also know how to use the banking system.
3. SPECIFIC REQUIREMENTS
3.1 External Interface Requirements:
3.1.1 User Interfaces:
Server: This server will have a very simple set of commands. It will run in a console.
Upon initial server initialization the server will prompt the user for the port number and
the name of the bank.
System.
Good processor.
128mb RAM(minimum).
Visual Basic
Microsoft Access
Rational rose
3.1.6 Operation:
The Banking System has two active actors. They are user and administrator. The user will
be able to enter the transaction details and view their amount balance only. The
administrator will access the entire system. He will view all the activities of the bank and
the users.
52
3.3.2 Availability:
The Bank Server shall be available and running in a stable state at all times.
The Bank Officer Software shall be available at all times.
3.3.3 Security:
The system shall require a password to allow a user to logon. The system shall
require the user to know their own password and account
number.
3.3.4 Maintainability:
The source code shall be available to the developers.
53
4.DESIGNING:
UML DIAGRAMS:
1.
2.
3.
4.
5.
6.
User information.
Account information.
Transaction order
54
Branch details.
Reports.
Management and updating.
55
SEQUENCE DIAGRAM
57
COLLABORATION DIAGRAM
58
59
CLASS DIAGRAM
60
61
62
COMPONENT DIAGRAM
5. IMPLEMENTATION:
CODE GENERATION STEPS:
There are code generation properties associated with the project, the class, the roles, the
attributes, and operations. Project properties concern file name, default container, and
placement of the generated code. Class properties concern constructors etc. Operation
properties deal with the operation kind (abstract, static etc.) and allow the operation to be
made constant. The property set for roles deals with the generation of get/set methods,
visibility of methods, and the container class to be used.
1. Select the Tools:Option menu choice
2. Select the cg tab
3. Click on the arrow to make the drop-down menu visible
4. Select the desired type of property set.
5. Click the Clone button to make the Clone Property Set window
visible.
6. Enter the name of the new property set.
7. Click the OK button to close the Clone Property Set window.
8. Click to select the property to change.
9. Click the Edit Value button to place the property in edit mode.
10. Enter the new value or select the new value from the drop-down
menu if one is provided.
11. Repeat steps 8 through 10 for each property to be changed.
12. Click the Apply button to apply changes.
13. Repeat the preceding steps for each new property set.
14. Click the OK button to close the Options window.
JAVA CODE:
package banking;
public class administrator
{
private string name;
private integer accno;
private string init_bal;
public projectmanagementdb theProjectmanagementdb;
/**
63
@roseuid 4D84867D0057
*/
public administrator()
{
}
/**
@roseuid 4D410CC6039A
*/
public void maintaininformation()
{
}
/**
@roseuid 4D410CD901B5
*/
public void add()
{
}
/**
@roseuid 4D410CE1005D
*/
public void delete()
{
}
/**
@roseuid 4D410CE902AF
*/
public void update()
{
}
/**
@roseuid 4D410CF7027F
*/
public void assign()
{
}
64
PROJECT IMPLEMENTATION:
Coding:
CODING:
Form Login1:
Option Explicit
Public LoginSucceeded As Boolean
Private Sub cmdCancel_Click()
'set the global var to false
'to denote a failed login
LoginSucceeded = False
Me.Hide
End Sub
Private Sub cmdOK_Click()
'check for correct password
If txtPassword = "y" And txtUserName = "y" Then
'place code to here to pass the
'success to the calling sub
'setting a global var is the easiest
LoginSucceeded = True
Me.Hide
frmmaaainmenu.Visible = True
frmLogin1.Visible = False
Else
MsgBox "Invalid Password, try again!", , "Login"
txtPassword.SetFocus
'SendKeys "{Home}+{End}"
End If
End Sub
Form adminview:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
frmwithdraw.Visible = True
frmadminview.Visible = False
End Sub
Private Sub Command2_Click()
frmdeposit.Visible = True
frmadminview.Visible = False
End Sub
Private Sub Command3_Click()
frmmaaainmenu.Visible = True
65
frmadminview.Visible = False
End Sub
Private Sub Command4_Click()
If Text2.Text <> "" Then
rs.FindFirst "[accountnumber] = '" & Text2.Text & "' "
If rs.NoMatch Then
MsgBox "no customer by that name was found ", vbExclamation
Else
Text3.Text = rs.Fields(0)
Text4.Text = rs.Fields(2)
Command1.Enabled = True
Command2.Enabled = True
End If
Else
MsgBox "PLEASE ENTER THE DETAILS"
End If
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("D:\PGMS\vb pgm\BANKY\main.mdb")
Set rs = db.OpenRecordset("newaccount", dbOpenDynaset)
Text3.Enabled = False
Text4.Enabled = False
Command1.Enabled = False
Command2.Enabled = False
End Sub
Form create:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
rs.AddNew
txtname.Enabled = True
txtaccno.Enabled = True
txtiniamt.Enabled = True
CREATE.Enabled = True
Command1.Enabled = False
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("D:\PGMS\vb pgm\BANKY\main.mdb")
Set rs = db.OpenRecordset("newaccount", dbOpenDynaset)
txtname.Text = ""
txtaccno.Text = ""
txtiniamt.Text = ""
CREATE.Enabled = False
txtname.Enabled = False
66
txtaccno.Enabled = False
txtiniamt.Enabled = False
End Sub
Private Sub CANCEL_Click()
frmmaaainmenu.Visible = True
frmcreate.Visible = False
Command1.Enabled = True
CREATE.Enabled = False
End Sub
Private Sub CREATE_Click()
If txtname.Text <> "" Or txtaccno.Text <> "" Or txtiniamt.Text <> "" Then
rs.FindFirst "[ACCOUNTNUMBER]<>'" & txtaccno.Text & "'"
If rs.NoMatch Then
rs.Update
txtname.Text = ""
txtaccno.Text = ""
txtiniamt.Text = ""
Else
c = MsgBox("ACCOUNT CREATED", vbOKOnly)
End If
Else
a = MsgBox("Please fill in all details")
End If
CREATE.Enabled = False
Command1.Enabled = True
frmmaaainmenu.Visible = True
frmcreate.Visible = False
txtname.Enabled = False
txtaccno.Enabled = False
txtiniamt.Enabled = False
End Sub
Private Sub RESET_Click()
txtname.Text = ""
txtaccno.Text = ""
txtiniamt.Text = ""
End Sub
Form delete:
Dim db As Database
Dim rs As Recordset
67
68
ys("name") = frmadminview.Text3
ys("transaction") = "Deposited"
ys("accno") = frmadminview.Text2
ys("balance") = Text2.Text
ys.Update
rs.Update
c = MsgBox("AMOUNT DEPOSITED", vbOKOnly)
If c = vbOK Then
frmmaaainmenu.Visible = True
frmdeposit.Visible = False
Else
frmwithdraw.Visible = False
frmadminview.Visible = True
End If
End If
End If
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("D:\PGMS\vb pgm\BANKY\main.mdb")
Set rs = db.OpenRecordset("newaccount", dbOpenDynaset)
Set ys = db.OpenRecordset("report", dbOpenDynaset)
End Sub
Form withdraw:
Dim db As Database
Dim rs As Recordset
Dim ys As Recordset
Private Sub Command1_Click()
frmmaaainmenu.Visible = True
frmwithdraw.Visible = False
End Sub
Private Sub Command2_Click()
If frmadminview.Text2.Text <> "" Then
rs.FindFirst "[accountnumber] = '" & frmadminview.Text2.Text & "' "
If rs.NoMatch Then
MsgBox "no customer by that name was found ", vbExclamation
Else
rs.Edit
ys.Edit
ys.AddNew
ys("withdrawed") = 0
ys("deposited") = 0
ys("withdrawed") = Text2.Text
69
ys("initialamt") = Val(rs("initialamount"))
rs("initialamount") = Val(rs("initialamount")) - Val(Text2.Text)
Text2.Text = rs("initialamount")
ys("date") = frmmaaainmenu.Label1
ys("name") = frmadminview.Text3
ys("transaction") = "Withdrawed"
ys("accno") = frmadminview.Text2
ys("balance") = Text2.Text
ys.Update
rs.Update
c = MsgBox("AMOUNT WITHDRAWED", vbOKOnly)
If c = vbOK Then
frmmaaainmenu.Visible = True
frmwithdraw.Visible = False
Else
frmwithdraw.Visible = False
frmadminview.Visible = True
End If
End If
End If
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("D:\PGMS\vb pgm\BANKY\main.mdb")
Set rs = db.OpenRecordset("newaccount", dbOpenDynaset)
Set ys = db.OpenRecordset("report", dbOpenDynaset)
End Sub
Form report:
Dim db As Database
Dim rs As Recordset
Private Sub Form_Load()
Set db = OpenDatabase("f:\yo bank\main.mdb")
Set rs = db.OpenRecordset("report", dbOpenDynaset)
End Sub
Private Sub Command2_Click()
rs.AddNew
End Sub
Private Sub Command1_Click()
Command1.Caption = "GENERATED"
Call Command2_Click
End Sub
Form main menu:
70
71
Input
Output Description
If the Username and Password are
Login
create
Delete
Enter Username
and Password
Click create
login is incorrect.
A new account is created if the account
number does not conflict with the
existing account else, the account
already exists is displayed.
command button
Click Delete
command button.
View
Deposit
Withdraw
Report
72
PROJECT EXECUTION:
Form Login:
Form Main:
73
Form Create:
74
Form Delete:
Form Deposit:
75
Form Withdraw:
Form View:
76
Form Report:
77
RESULT:
Thus the Banking System was Designed, Implemented and Executed Successfully using
Rational Rose software and visual basic.
78
ONLINE SHOPPING
SOFTWARE REQUIREMENT SPECIFICATION:
1. INTRODUCTION:
To perform a project for online shopping using html for purchasing things in
online. Gives the details of things which we purchase in online.
1.1 Purpose:
The purpose of this document is to present a detailed description of the online
shopping .It will explain the features of the system, the interfaces provided by the system
and what the system will do.
1.2 Scope:
The scope of this project is to perform online shopping. This is designed to display the
products selected by the customers to purchase and display the purchase details
accurately and easily. To store the databases of the products and the result, using HTML.
1.3 Reference:
IEEE STD 830-1998 IEEE recommended practice for software requirements
specifications IEEE computer society, 1998.
2. OVERALL DESCRIPTION:
The overall description of the document gives an overview of the functionality of
the product. it describes the informal requirements and is used to establish a context for
the requirement specification.
79
Customer: Users should enter their valid account name and password.
Database: Database should posses all the valid details about User
Accounts details, Product details, Place Orders details.
3. SPECIFICATION REQUIREMENT:
Software Requirement specification is a document that describes all the functions
of a proposed system and the constraints under which it must operate.
80
o INTERNET.
3.1.6 Operation
We should perform online shopping in various operating Systems.We perform it
by using HTML and .net etc but its back end must be only MS - access for storing the
databases of the products and the purchase details.
3.3.2 Availability
This Online Shopping System is available at all times since the project
implemented through internet connection.
81
3.3.3 Security
The Project provides much security to the Product sellers which transactions are
carried out through online and fake users cannot be able to place orders.
3.3.4 Maintainability
The Project can be well maintained with the help of the developers. Each updating
process can be added to the website and displayed simultaneously.
3.3.5 Portability
The Online Shopping is implemented through online and so can be executable in
all platforms such as internet possessing systems.
3.3.6 Performance
The Project well equipped with the recent networking technologies and will result
in high performance.
4. DESIGNING:
Designing phase involves many UML diagrams
4 UML DIAGRAMS:
Use case diagram
4.1 Sequence diagram
4.2 Collaboration diagram
4.3 Class diagram
4.4 State diagram
4.5 Component diagram
82
DESCRIPTION
A use case diagram in the Unified Modeling Language (UML) is a type of
behavioral diagram defined by and created from a Use-case analysis. Its purpose is to
present a graphical overview of the functionality provided by a system in terms of actors,
their goals (represented as use cases), and any dependencies between those use cases.
Usecases: A use case describes a sequence of actions that provide something of
measurable value to an actor and is drawn as a horizontal ellipse
Actors: An actor is a person, organization, or external system that plays a role in one or
more interactions with the system
83
84
4.1.2.1 DESCRIPTION:
A sequence diagram in Unified Modeling Language (UML) is a kind of interaction
diagram that shows how processes operate with one another and in what order. It is a
construct of a Message Sequence Chart.
acto r
S :sh o p cart
P lace o rd er
< < create> >
S u b m it o rd er
85
O :o rd er
86
A c to r
c u sto m e r
tr a c k s o r ds e ar r c h e s
co n n ec
87
4. 3 COLLABORATION DIAGRAM:
DESCRIPTION:
In software engineering A collaboration diagram, also called a communication
diagram or interaction diagram, is an illustration of the relationships and interactions
among software objects in the Unified Modeling Language (UML)In this collaboration
diagram, the objects are represented as rectangle, the actors are stick figures.
Collaboration diagram shows the object and actor interaction without reference to time.
In our Online Sopping System, each object interacts with each other or collaborates with
each other; it gets represented by the solid line drawn between them.
4 :
i e w
r o d
c t
p d b : P
r o d u c t D
5 : C o n n e c t c u s t o m
p r o d u c t d a t a b a s e
c : C
s t o
1 :
r p : R
i g n
e g i s t r a t i o n
i n
6 :
7 :
I t e m
i t e 1 m 1 : ( sS ) e n d
s ec lu e s c t to e m d
c o n
a t a b a s e
e r
t o
s d : S
h ip p i n g D
f i r m
a t i o n
e r
1 0 :
f o r
S e n d
s h i p p
3 : C o n n e c t c u s t o m
e r
t o
c u s t o m
e r d a t f a d b: F a i n s ae n c i n g D
r o c e s s o
b : C
e p
a d d
i n g
r t m
2 : M
a t c h e s
c u s t o m
e r
d a t a b a s e
c d
e p a r t m
t o
u s t o
8 : C
f o r
e
88
r D
t a
b a
9 : A c c e p
c r e d i t
h e c k
c r e d i t
c u s t o m
e r
s e
e n
r e s
90
91
5. IMPLEMENTATION:
STEPS FOR CODE GENERATION:
1. Open your model and display the Class Diagram that contains the classes and packages
for which you want to generate Java source.
2. Select one or more classes or packages in the diagram.
3. Optionally, use the syntax checker before generating your Java source.
4. On the Tools menu, point to Java, and then click Generate Java.
5. If a package or component hasnt been mapped to an entry in your classpath settings
(for example, this is the first time youve generated code for a component or package),
the Component Mapping dialog appears enabling you to set up the appropriate
associations.
6. Check the Rose Log window to view the results of the Java generation, including any
errors that occurred.
7. Correct any errors and repeat step 4 until no errors are returned.
8. View and edit the generated code.
CODE:
Public class
{
Public Productlist()
{
}
Public optionlist()
{
}
Public productdetails()
{
}
Public Optiondetails()
{
}
92
Coding:
Page 1:
<html>
<head>
<h3><I><marquee><MARQUEE DIRECTION ="LEFT" BEHAVIOUR="alternate"
scrolldeley=80 bgcolor="ORANGE">THE WORLD OF ONLINE
SHOPPING</MARQUEE>
Welcome To The Web World</marquee></h3><I>
<div ><div id="840118827707463697" align="left" style="width: 100%; overflow-y:
hidden;"><!-- this script got from www.htmlfreecodes.com coded by: Krishna Eydat-->
<html>
<head>
<script language="javascript" type="text/javascript">
alert("Welcome to online shopping")
</script>
</head>
</html>
<font face="Tahoma"><a target="_blank" href="http://www.htmldodes.com/"><span
style="font-size: 8pt; text-decoration: none"></span></a></font>
</div>
<CENTER><IMG SRC="D:\photos\WALLPAPER\games\red_alert2_4_1024x768.jpg"
ALIGN="right" WIDTH=250 HEIGHT=250 BORDER=10></CENTER>
<BR><BR>Enter name <INPUT TYPE="NAME" SIZE=34 <BR><BR>
<BR><BR>Enter credit card no <INPUT TYPE="NUMBER" SIZE=24<BR><BR>
<BR><td align="center"><input name="submit" type="submit" value="Submit"/>
</td><BR>
</head>
</html>
Page 2:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
93
<head>
<title>Website Design, Web Design Companies and Designers Directory</title>
<meta name="Description" content="Directory of top website design companies and web
designers providing professional web design and development services.">
<meta name="Keywords" content="web website design companies designer">
<meta name="robots" CONTENT="index, follow" />
<meta name="googlebot" CONTENT="index, follow" />
<link rel='stylesheet' href='style.css' type='text/css'>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"
marginheight="0" marginwidth="0">
<table width='776' cellpadding="0" cellspacing="0" class="main">
<tr>
<td align="left" bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="2" bgcolor="FF9608" leftmargin="0" rightmargin="0" align="left"><a
href="/"><img src="images/design-logo.gif" border="0" alt="Online Shopping
Directory"></a></td>
</tr>
<tr>
<td colspan="2" bgcolor="ffffff" leftmargin="0" rightmargin="0" height="1">
</td>
</tr>
<tr><td colspan=2 bgcolor="#d4d4d4"><table class=headmenu align="right"><tr>
<td><a href="C:\Documents and Settings\Sabareesh\Desktop\pro1\title.html"
class=headmenu>More products</a></td><td width="1" height="21"><img
src="images/spacer.gif" width="1" height="21"></td><td><a href="C:\Documents and
Settings\Sabareesh\Desktop\pro1\title.html" class=headmenu>Policies</a></td><td
width="1" height="21"><img src="images/spacer.gif" width="1"
height="21"></td><td><a href="C:\Documents and
Settings\Sabareesh\Desktop\pro1\title.html" class=headmenu>if we are Free</a></td><td
width="1" height="21"><img src="images/spacer.gif" width="1"
height="21"></td><td><a href="C:\Documents and
Settings\Sabareesh\Desktop\pro1\title.html" class=headmenu>Contact Us</a></td><td
width="1" height="21"><img src="images/spacer.gif" width="1"
height="21"></td><td><a href="C:\Documents and
Settings\Sabareesh\Desktop\pro1\title.html" class=headmenu>About
us</a> </td> </tr></table></td></tr>
<tr>
94
<tr>
<td class="text">
<h1><font size="4"><strong>Web Shopping Details & Website Shopping
Companies Directory</strong></font></h1>
<img src="images/website-design-image.gif" alt="Website Designs" align="right">
Online shopping is a method to buy a products in your home with a smile.
lets take a charm with us. surely we will satisfy you soon.
it gives you a joyable experience in shopping whatever you buy as we can do soon.
</td>
</tr>
</table>
<!-- featured -->
<table width="100%" cellspacing=0 cellpadding=0>
<tr>
<td width="20%" align="center" valign="middle" class="reviewheading2"
height="50">WEB DESIGN FIRM</td>
<td width="20%" align="center" valign="middle" class="reviewheading2"
height="50">EDITOR'S RATINGS</td>
<td width="30%" align="center" valign="middle" class="reviewheading2"
height="50">REVIEW</td>
</tr>
<!-- Online Shopping design 1 Begin Here -->
<tr>
<table width="100%" cellspacing=0 cellpadding=0>
<tr>
<td align="left">
<img src="images/spacer.gif" height="1" width="3">
</td>
<td align="left">
<li><b>system shopping</b></li>
<li><b>Flash/Animation</b></li>
<li><b>Web Analytics</b></li>
<li><b>Online Hosting</b></li>
</td>
</tr>
</table>
</td>
<td width="30%" align="left" valign="top" class="reviewdetail" height="50">
<table width="100%" cellspacing=0 cellpadding=0>
<br>
<tr>
96
<tr>
<td align="left">97%</td>
</tr>
<tr>
<td align="left">100%</td>
</tr>
<tr>
<td align="left">100%</td>
</tr>
</table>
</tr>
<tr>
<td width="1" align="left" colspan="3"><img src="images/spacer.gif" height="15"
width="1"></td>
</tr>
4:40 PM 10/11/2010
<tr>
<td colspan="3" align="center"><img src="images/award.gif"></td>
</tr>
<tr>
<td width="1" align="left" colspan="3"><img src="images/spacer.gif" height="15"
width="1"></td>
</tr>
<tr>
<td colspan="3" align="center"><a href="http://www.opengatewebdesign.com"><img
src="images/quote.gif" border="0"></a></td>
</tr>
<tr>
<td width="1" align="left" colspan="3"><img src="images/spacer.gif" height="10"
width="1"></td>
</tr>
</table>
</td>
<td width="25%" align="left" class="reviewdetail" height="50" valign="top">
<table width="100%" cellspacing=0 cellpadding=0>
<br>
<tr>
<td width="10" align="left"><img src="images/spacer.gif" height="1"
width="10"></td>
<td align="left"> lets give a chance to us</td>
98
<tr>
<td><img src="images/spacer.gif" height="10" width="1"></td>
</tr>
</table>
<table width="580" cellpadding="0" cellspacing="0">
<tr>
<td align="left" width="240" class="text2" valign="top">
<table width="240" cellpadding="0" cellspacing="0">
<tr>
<td class="text2"><strong><font face="arial">Contact
Name:</font></strong> <font color="ff0000" size="1"
face="arial">(required)</font><br><input id="contactname" name="contactname"
type="text" size="30" style="font-family: arial; font-size: 13px; float: left;"></td>
</tr>
<tr>
<td class="text2"><strong><font face="arial">Address:</font></strong><br><input
id="address" name="address" type="text" size="30" style="font-family: arial; font-size:
13px; float: left;"></td>
</tr>
<tr>
<td class="text2"><strong><font face="arial">Contact Phone
Number:</font></strong> <font color="ff0000" size="1"
face="arial">(required)</font><br><input id="phone" name="phone" type="text"
size="30" style="font-family: arial; font-size: 13px; float: left;"></td>
</tr>
<tr>
<td class="text2"><strong><font
face="arial">Email:</font></strong> <font color="ff0000" size="1"
face="arial">(required)</font><br><input id="email" name="email" type="text"
size="30" style="font-family: arial; font-size: 13px; float: left;"></td>
</tr>
<tr>
<td class="text2">
<strong><font face="arial">Do you already have a website?</font></strong><br>
<select style="font-family: arial; font-size: 13px;" id="currentsite"
NAME="currentsite">
<option SELECTED value="select">Select one...</option>
<option value="yes">Yes</option>
<option value="no">No</option>
</select></td>
</tr>
100
<tr>
<td class="text2"><strong><font face="arial">If yes, what is your URL?
</font><br><input id="url" name="url" type="text" size="30" style="font-family: arial;
font-size: 13px; float: left;"></strong></td>
</tr>
<tr>
<td class="text2">
<strong><font face="arial">When would you like to begin?</font></strong><br>
<select style="font-family: arial; font-size: 13px;" id="start" NAME="start">
<option SELECTED value="select">Select one...</option>
<option value="now">Immediately</option>
<option value="oneweek">1 week</option>
<option value="twoweeks">2 weeks</option>
<option value="onemonth">One month</option>
<option value="twomonths">2 months</option>
<option value="threemonths">3 or more months</option>
</select></td>
</tr>
<tr>
<td class="text2">
<strong><font face="arial">What is your budget?</font></strong><br>
<select style="font-family: arial; font-size: 13px;" id="price" NAME="price">
<option SELECTED value="price">Select one...</option>
<option value="200">$200 to $500</option>
<option value="500">$500 to $1000</option>
<option value="1000">$1000 to $3000</option>
<option value="3000">$3000 to $5000</option>
<option value="5000">$5000+</option>
</select></td>
</tr>
</table>
</td>
<td width="340" valign="top">
<table width="340">
<tr>
<td class="text"><b>our products Services Required:</b> <font
color="ff0000" size="1" face="arial">(check all that apply)</font></td>
</tr>
<tr>
<td class="text2">
101
</tr>
<tr>
<td align="center"><input name="submit" type="submit" value="Submit"/>
<input name="button" type="button" onClick="valid.reset(); return false"
value="Reset" />
</td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
</table>
</form>
<!-- FORM END -->
<!-<table cellpadding="0" width="600">
<tr>
<td colspan="4"><h4>Website Design Companies by State</h4></td>
</tr>
<tr>
<td width="140" valign="top">
<img src="images/black-arrow.gif"><a href="arizona-web-design.html"
class="middlenav">Arizona</a><br>
<img src="images/black-arrow.gif"><a href="california-web-design.html"
class="middlenav">California</a><br>
<img src="images/black-arrow.gif"><a href="colorado-web-design.html"
class="middlenav">Colorado</a><br>
</td>
<td width="140" valign="top">
<img src="images/black-arrow.gif"><a href="delaware-web-design.html"
class="middlenav">Delaware</a><br>
<img src="images/black-arrow.gif"><a href="florida-web-design.html"
class="middlenav">Florida</a><br>
<img src="images/black-arrow.gif"><a href="idaho-web-design.html"
class="middlenav">Idaho</a><br>
</td>
<td width="140" valign="top">
<img src="images/black-arrow.gif"><a href="michigan-web-design.html"
class="middlenav">Michigan</a><br>
103
</table>
</td>
</tr>
</table>
<script language="Javascript"> if(document.referrer&&document.referrer!="")
document.write("<img src='http://www.inteliture.com/cgi-bin/statcount.pl?a=18&t=" +
document.title + "&r="+escape(document.referrer)
+"&w="+screen.width+"&h="+screen.height+"' height='1' width='1' border='0' />");
else document.write("<img src='http://www.inteliture.com/cgi-bin/statcount.pl?a=18&t="
+
document.title + "&r=x&w="+screen.width+"&h="+screen.height+"' height='1' width='1'
border='0' />");</script>
</body>
105
</html>
No
Error
Description
Invalid credit card
Number.
Output Description
Entered credit number must invalid
Characters.
106
Username and
Password
mismatch.
Products Not
Available.
Invalid Details
Searching Errors
107
108
Page2:
Page3:
109
110
RESULT:
Thus the Online Shopping Project was Implemented using Visual Basic , Designed
using Rational Rose and Executed Successfully.
111