Foreign Trading System Report
Foreign Trading System Report
Foreign Trading System Report
CHAPTER I
INTRODUCTION
1.1 OVERVIEW
This project emphasizes about the Foreign Trade System which is an Interface
between the Account holder and the market. In the initial phase details about the various
currencies and the profit and loss of currency hold is collected. The project comprises of several
modules which also includes currency converter and program to calculate profit and loss for both
the operation of the buyer and then the operations of the seller to be considered.
Purpose
The purpose of this project is to scientifically approach the foreign exchange market, and
to evaluate whether we can develop a strategy that can automatically trade in the market
successfully, and can outperform existing basic strategies.
To first understand the various overall market conditions- trending, directionless, and
volatile.
This is crucial, since different trading strategies prove appropriate for differing market
conditions.
OVERALL DESCRIPTION
1.3
PRODUCTPERSPECTIVE
Currency Converter gives you accurate and instant foreign currency Conversions .The
options
are varied for minimum currency trading investments. There is also mini account
where with a very small initial investment in a leveraged foreign currency, you can reach a
high level of reward and it is get it through the conceptual and satisfactory minimal risk.
SoftwareInterface
Front End Client - The applicant and Administrator online interface is built using JSP and
HTML.
The
Administrators
local
interface
is
built
using
Java.
TECHNOLOGIES TO BE USED
HTML
JSP
JavaScript
Java
XML
AJAX
TOOLS TO BE USED
Eclipse IDE ( Integrated Development Environment)
Rational Rose tool ( for developing UML Patterns)
1.5 SYSTEM FUNCTIONS
LOGIN
The Login module contains the form which contain membership name and
Member password. It includes Username and Password.
TRADING ACCOUNT DETAILS
This form contains the information about account holder, market status,
Currency held, trading histories, etc.
BUY
After the user logged in they can buy stocks online the user can buy stock only
it is available for buying.
SELL
After the user logged in they can sell stocks online, the user can sell his own
Stocks only.
BANK ACCOUNT DATABASE
After the trading is finished user has to select the type of transaction whether
Credit card account.
1.6 USER CHARESTERISTICS
BUYER
After the user logged in they can buy stocks online the user can buy stock only. It is
available for buying.
SELLER
After the user logged in they can sell stocks online , the user can sell his own
stocks only.
BANK ACCOUNT DATABASE
After the trading is finished user has to select the type of transaction whether
credit card Debit account.
1.7 ENVIRONMENTAL SPECIFICATION
SOFTWARE FUNCTIONS
Front End Client - The investor and buyer online interface is built using JSP and
1.8 CONSTRAINTS
The investor require a computer to submit their information.
Although the security is given high importance, there is always a chance of intrusion in
Use Case diagrams identify the functionality provided by the system (use cases), the
users who interact with the system (actors), and the association between the users and the
functionality.Use Cases are used in the Analysis phase of software development to articulate the
high-level requirements of the system. The primary goals of Use Case diagrams include:
The Applicants and Administrator must have basic knowledge of computers and English
Language.
The applicants may be required to scan the documents and send.
1.9 IMPLEMENTATION:
After the completion of UML diagrams for FOREIGN TRADING SYSTEM we should
generate the code. Select the tools option from main menu then select the sub option program
module in which we are going to generate the code in JAVA/VB/J2EE. Then go ahead and select
the generate code option as a result of code generation.
1.10 TESTING:
To perform the testing for the generated code again select the tools option from menu
bar and choose quality architecture option a sub window gets opened. We are going to perform
Unit Test and Scenario testing for our project. So, select these testing option one by one and
testing activity is carried out for all the coding and testing is carried out.
CHAPTER 2
DEVELOP THE USECASE MODELING
Use case diagrams identify the functionality provided by the system,the users who
interact with the system(actors),and the association between the users and the functionality. Use
cases are used in the analysis phase of the software development to articulate the high level
requirements of the system.
Basic Elements:
Actor
Actor is something with behaviour,and is depicted using a stick figure. Actors are not
limited to humans. If a system communicates with another application, the that application can
also be considered an actor.
Use case
A Use case describes a sequence of actions that provide something of measurable value to
an actor. A use case is the functionality provided by the system.
Association
Associations are used to link Actors with Use cases ,and indicate that an actor participate
in the use case in some form. Associations are depicted by a line connecting the actor and the use
case.
<<communicate>>
<Use Case Name>
<Actor Name>
(f rom Actors)
Scope
Level
Primary actor
: investor
error.
high
system
------------------------------------
10
: Login operations
Scope
Level
Primary actor
: Investor
Extension
11
---------------------------------------
Scope
Level
Primary actor
: Investor.
Extension
12
Special Requirements
------------------------------------------------
: Broker operations
Scope
Level
Primary actor
: Broker
Extension
13
------------------------------
14
CHAPTER 3
DEVELOPING UML ACTIVITY DIAGRAM
15
16
Login operation
17
authenticatio
n
invalid
valid
allowing
access
18
storing information
about a/c holder
invalid
valid
checking amount
withheld
no money
held
record trading
history
Broker operations
19
sell it to the
investor
CHAPTER 4
20
<ATTRIBUTES>
<OPERATIONS>
2) Relationships
Relationships between classes are the connecting links. Relationships between
classes are generally represented in class diagrams by a line or an arrow joining the two classes.
a) Dependency
If A depends on B then this is shown by a dashed arrow between A and B.
3) Association
21
There is an association between two classes if an instance of one class must know about
the other in order to perform its work. An association between A and B shown by a line joining
two classes.
4)Aggregation
Aggregation is the association in which one class belongs to the collection.if B aggregates
A,then A is the part of B.
5)Generalization
Generalization is an inheritance link indicating one class is a superclass of the other.A
genalization has a triangle pointing to the superclass.An inheritance relationship is indicated in
the UML by an arrow with a triangular arrow head pointing towards to the general
22
CHAPTER 5
23
:Object 1
24
25
Login Operation
Investor
trading
account
1: submitt account no.and password
26
market
authority
investment
bank
database
1: buy
2: bank a/c balance> trading a/c balance
3: make investment
4: sell
27
Broker operations
broker
trading
database
1: buying the amount from bank
2: if no money.then confirmation
3: verify the market status
4: if status is profit
5: selling operation
28
29
CHAPTER 6
DEVELOPING THE STATE CHART DIAGRAM
30
31
CHAPTER 7
DEVELOPING THE UML PACKAGE DIAGRAM
32
It is common to shoe dependency between packages so that developers can see the large
scale coupling in the system.
T he UML dependency line is used for a dashed arrow line with a arrow pointing
towards the dependant on packages.
Packages are defined by 3 symbols
Embedded packages
UML fully qualified names
Circle cross symbol
33
CHAPTER 8
IMPLEMENT THE TECHNICAL SERVICE LAYER
34
Technical services layer shows general purpose objects and subsystems that
provide supporting technical services, such as interfacing with a database or error logging. These
services are usually application-independent and reusable across several systems. Technical
service layer describes the relationship between different actors, components of the software
process for any admin seek the registration for new members. So that the new visitor can login
the website and search for book and if need can buy it.
SCREENSHOTS:
FORM2
35
FORM3
FORM4
36
FORM5
37
FORM6
FORM7
38
CHAPTER 9
IMPLEMENT THE DOMAIN OBJECT LAYER
Domain object layer shows the software objects representing domain concepts(for
example, a software class sale) that fulfill application requirements, such as calculating the sales
total.
After technical services layer, the coding can be generated in C++ using Rational
Rose Enterprise Suite.
Domain Objects Layer for Foreign Trading System:
ACCOUNT
Option Explicit
'##ModelId=4D64958501F4
Private accoutno As Integer
'##ModelId=4D64958E0186
Private balance As Integer
'##ModelId=4D64959B0290
Private due As Integer
'##ModelId=4D6612990290
Public Sub accountno()
MsgBox "your transaction is successfull"
Form6.Show
End Sub
'##ModelId=4D66130F0128
Public Sub accountpay()
MsgBox "your transaction failed. Do your trading again"
Form5.Show
End Sub
ITEM
Option Explicit
'##ModelId=4D6495B600CB
Private name As String
'##ModelId=4D6495BC0213
Private id As Integer
'##ModelId=4D6495CA0251
39
40
ADMINISTRATOR
'##ModelId=4D6496030128
Public NewProperty As item
'##ModelId=4D6CAE4001F4
Public Sub paybill2()
Form7.Text3.Text = Form7.Text3.Text - Form7.Text5.Text
End Sub
'##ModelId=4D649563003E
Public Sub bill1()
Form4.Text1.Text = Form3.Text4.Text * Form3.Text5.Text
Form4.Show
End Sub
'##ModelId=4D6CA397008C
Public Sub bill2()
Form8.Text1.Text = Form7.Text4.Text * Form7.Text5.Text
Form8.Show
End Sub
'##ModelId=4D64956F0399
Public Sub traceorder()
Form5.Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Documents and Settings\Student\Desktop\datum\db.mdb;Persist Security Info=False"
Form5.Adodc1.RecordSource = "select itemname from itemtable"
Set Form5.DataGrid1.DataSource = Form5.Adodc1
Form3.Text5.Text = ""
End Sub
'##ModelId=4D6612B70186
Public Sub paybill1()
Form3.Text3.Text = Form3.Text3.Text - Form3.Text5.Text
End Sub
41
CHAPTER 10
IMPLEMENT THE USER INTERFACE LAYER
BUYER
After the user logged in they can buy stocks online the user can buy stock only. It is
available for buying.
SELLER
After the user logged in they can sell stocks online , the user can sell his own
stocks only.
BANK ACCOUNT DATABASE
After the trading is finished user has to select the type of transaction whether
credit card Debit account.
LOGIN
The Login module contains the form which contain membership name and
Member password. It includes Username and Password.
TRADING ACCOUNT DETAILS
This form contains the information about account holder, market status,
Currency held, trading histories, etc.
BUY
After the user logged in they can buy stocks online the user can buy stock only
it is available for buying.
SELL
After the user logged in they can sell stocks online, the user can sell his own
Stocks only.
42
CHAPTER 11
DEVELOPING THE IMPLEMENTATION DIAGRAMS
43
44
CHAPTER 12
CONCLUSION
45