Software Engineering Lab Syllabus CSE
Software Engineering Lab Syllabus CSE
(R18 REGULATION)
By
[Link]
(Professor, Dept. of CSE)
Page No: 1
Department of Computer Science Engineering Software Engineering Lab
2) Course Objectives
1. To have hands on experience in developing a software project by using
various software engineering principles and methods in each of the
phases of software development.
3) Course Outcomes
1. Ability to translate end-user requirements into system and software requirements
2. Ability to generate a high-level design of the system from the software
requirements
3. Will have experience and/or awareness of testing problems and will be able to
develop a simple testing report
4) List of Experiments
Do the following 8 exercises for any two projects given in the list of sample projects or
any other projects:
1) Development of problem statement.
2) Preparation of Software Requirement Specification Document, Design
Documents and Testing Phase related documents.
3) Preparation of Software Configuration Management and Risk Management related
documents.
4) Study and usage of any Design phase CASE tool
5) Performing the Design by using any Design phase CASE tools.
6) Develop test cases for unit testing and integration testing
7) Develop test cases for various white box and black box testing techniques.
5) Sample Projects:
1. Passport automation System
2. Book Bank
3. Online Exam Registration
4. Stock Maintenance System
5. Online course reservation system
6. E-ticketing
7. Software Personnel Management System
Page No: 6
Department of Computer Science Engineering Software Engineering Lab
6) TEXT BOOKS:
1. Software Engineering, A practitioner’s Approach- Roger S. Pressman, 6th
edition, Mc Graw Hill International Edition.
2. Software Engineering- Sommerville, 7th edition, Pearson Education.
3. The unified modeling language user guide Grady Booch, James Rambaugh,
Ivar Jacobson, Pearson Education.
Page No: 7
LIST OF EXPERIMENTS
2 Book Bank
3 Exam Registration
6 E- Ticketing
10 Recruitment System
8
Ex no: 1 PASSPORT AUTOMATION SYSTEM
AIM:
To create an automated system to perform the Passport Process
Passport Automation System is used in the effective dispatch of passport to all of the
applicants. This system adopts a comprehensive approach to minimize the manual work and
schedule resources, time in a cogent manner. The core of the system is to get the online
registration form (with details such as name, address etc.,) filled by the applicant whose testament
is verified for its genuineness by the Passport Automation System with respect to the already
existing information in the database. This forms the first and foremost step in the processing of
passport application. After the first round of verification done by the system, the information is in
turn forwarded to the regional administrator's (Ministry of External Affairs) office. The
application is then processed manually based on the report given by the system, and any forfeiting
identified can make the applicant liable to penalty as per the law. The system also provides the
applicant the list of available dates for appointment to 'document verification' in the
administrator's office, from which they can select one. The system forwards the necessary details
to the police for its separate verification whose report is then presented to the administrator. The
administrator will be provided with an option to display the current status of application to the
applicant, which they can view in their online interface. After all the necessary criteria have been
met, the original information is added to the database and the passport is sent to the applicant.
1.0 INTRODUCTION
Passport Automation System is an interface between the Applicant and the Authority
responsible for the Issue of Passport. It aims at improving the efficiency in the Issue of Passport
and reduces the complexities involved in it to the maximum possible extent.
9
1.1 PURPOSE
If the entire process of 'Issue of Passport' is done in a manual manner then it would takes
several months for the passport to reach the applicant. Considering the fact that the number of
applicants for passport is increasing every year, an Automated System becomes essential to meet
the demand. So this system uses several programming and database techniques to elucidate the
work involved in this process. As this is a matter of National Security, the system has been
carefully verified and validated in order to satisfy it.
1.2 SCOPE
▪ The System provides an online interface to the user where they can fill in their personal
details and submit the necessary documents (may be by scanning).
▪ The authority concerned with the issue of passport can use this system to reduce his
workload and process the application in a speedy manner.
▪ Users/Applicants will come to know their status of application and the date in which they
must subject themselves for manual document verification.
▪ Applicant
One who wishes to obtain the Passport.
▪ PAS
Refers to this Passport Automation System.
▪ HTML
Markup Language used for creating web pages.
10
▪ J2EE
Java 2 Enterprise Edition is a programming platform java platform for developing and
running distributed java applications.
▪ HTTP
Hyper Text Transfer Protocol.
▪ TCP/IP
Transmission Control Protocol/Internet Protocol is the communication protocol used to
connect hosts on the Internet.
1.4 REFERENCES
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements
Overall Description will describe major role of the system components and interconnections.
11
2.2 SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online interface is built using JSP
and HTML. The Administrator’s local interface is built using Java.
▪ Administrator
He has the certain privileges to add the passport status and to approve the issue of
passport. He may contain a group of persons under him to verify the documents and give
suggestion whether or not to approve the dispatch of passport.
▪ Police
He is the person who upon receiving intimation from the PAS, perform a personal
verification of the applicant and see if he has any criminal case against him before or at
present. He has been vetoed with the power to decline an application by suggesting it to
the Administrator if he finds any discrepancy with the applicant. He communicates via
this PAS.
12
2.6 CONSTRAINTS
▪ The applicants require a computer to submit their information.
▪ Although the security is given high importance, there is always a chance of intrusion in
the web world which requires constant monitoring.
▪ The user has to be careful while submitting the information. Much care is required.
2.7 ASSUMPTIONS AND DEPENDENCIES
▪ The Applicants and Administrator must have basic knowledge of computers and English
Language.
ACTORS INVOLVED:
1. Applicant
2. Passport Officer
3. Police
13
USE-CASE NAME: CHECK STATUS
The Applicant tries to check the status in which category applied. The system displays the
message to the applicant.
14
login
applicant
registration
passport officer
verification
check status
enquiry
police
dispatch passport
15
(IV) ACTIVITY DIAGRAM:
The activity diagram represents the series of activities that are ocurring between the
[Link] is activity diagram which represents the Software personnel managemnet
system process .
16
The class diagram is referred as object modeling in the static analysis diagram. The main task of
object modeling is to graphically show what each object will do in the problem domain.
The problem domain describes the structure and the relationships among objects. The
Passport Automation system class diagram consists of five classes
1. Login class
2. Appointment class
3. Registration class
4. Authority class
5. Verification class
7) LOGIN CLASS:
It consists of two attributes and two operations. The attributes are user name, and password. The
operations of this class are creating login ( ), sign in ( ).
8) APPOINMENT CLASS:
The attributes of this class are appointment id, applicant id, date, time, and description. The
operation of this class are get appointment ( ), get appointment status ( ), Modify ( ), cancel ( ).
9) REGISTRATION CLASS:
The attributes are applicant id, name, dob, gender, birthplace, father name, addr1, addr2, district,
state, country, pin code, mobile, email id, qualification. The operation are add ( ), modify ( ),
view ( ).
The attributes of this class are officered, name, designation, and password. The operations are
search ( ).
The attributes of this class are verification id, appointment id, applicant id, officer id,
status id, description. The operation are verify ( ).
17
[Link] DIAGRAM FOR PASSPORT AUTOMATION SYSTEM
▪ Most object to object interactions and operations are considered events and events include
signals, inputs, decisions, interrupts, transitions and actions to or from users or external
devices.
▪ It is also represented by the order in which things occur and how the objects in the system
send message to one another.
18
▪ The sequence diagram for each USE-CASE that exists when a user administrator, check
status and new registration about passport automation system are given.
Create Login
Enter Username/Pwd
Check username/Pwd
save username/pwd
Signin
get username/pwd
Check username/Pwd
19
Database
1: Create Login
3: Enter Username/Pwd
9: Signin 4:
14: Enter applicant information LoginCla
UI
ss
2:
8:
: applicant 13: show Registration Form
10: get username/pwd
24: shows applicant ID, Date & time
6: save username/pwd
23:
7:
11:
15:
22: Appointme
ntClass
▪ The diagrams show the process done by the Passport Authority to the Passport
Automation system. The applicant has to enter his details.
▪ The details entered are verified by the Passport Authority and the applicant is approved if
the details match then the passport is dispatch, otherwise an appropriate error message is
displayed.
20
[Link] CHART DIAGRAM FOR PASSPORT AUTOMATION SYSTEM
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed.
COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships among components
in a system.
21
[Link] DIAGRAM FOR PASSPORT AUTOMATION SYSTEM
/**
* @roseuid 5142EF4002BF
*/
public authorityClass()
{
/**
* @roseuid 5142ED5F01E4
*/
public void search()
{
}
}
//void [Link](){
//
// }
22
//Source file: [Link]
/**
@roseuid 50F8E90000BB
*/
public appointmentClass()
{
/**
@roseuid 50F8E4BA0271
*/
public void getappointment()
{
/**
@roseuid 50F8E4C503D8
*/
public void getappointmentStatus()
{
/**
@roseuid 50F8E4D20167
*/
public void modify()
{
/**
@roseuid 50F8E4D8032C
*/
23
public void cancel()
{
}
}
24
Fig.11.2. Registration Form
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the test
case format. It has all the information like preconditions, input data, output data, post
conditions, etc. It has a defined set of inputs which will provide the expected output.
• Informal test cases: Informal test cases are authored for such requirements where the exact
input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
25
Test Case Input ExpOutput ActOutput Desc
RESULT:
Thus the mini project for passport automation system has been successfully executed and
codes are generated.
26
Ex no: 2 BOOK BANK SYSTEM
AIM:
To create a system to perform book bank operation
A Book Bank lends books and magazines to member, who is registered in the system. Also it
handles the purchase of new titles for the Book Bank. Popular titles are brought into multiple
copies. Old books and magazines are removed when they are out or date or poor in condition. A
member can reserve a book or magazine that is not currently available in the book bank, so that
when it is returned or purchased by the book bank, that person is notified. The book bank can
easily create, replace and delete information about the tiles, members, loans and reservations from
the system.
1.0 INTRODUCTION
Book Bank is the interface between the students and Librarian. It aims at improving the
efficiency in the Issue of books or magazines and reduce the complexities involved in it to the
maximum possible extent.
1.1 PURPOSE
If the entire process of 'Issue of Books or Magazines' is done in a manual manner then it
would take several months for the books or magazines to reach the applicant. Considering the fact
that the number of students for Book Bank is increasing every year, an Automated System
becomes essential to meet the demand. So this system uses several programming and database
techniques to elucidate the work involved in this process. The system has been carefully verified
and validated in order to satisfy it.
1.2 SCOPE
The System provides an online interface to the user where they can fill in their personal
details and submit the necessary documents (may be by scanning). The authority concerned with
the issue of books can use this system to reduce his workload and process the application in a
speedy manner.
• Librarian - Refers to the super user who is the Central Authority who has been
vested with the privilege to manage the entire system.
• Student - One who wishes to obtain the Books or Magazines.
27
• HTML - Markup Language used for creating web pages.
1.4 REFERENCES
• Visual Basic
• Oracle 11g
1.7 OVERVIEW
Overall description will describe major role of the system components and
interconnections.
The SRS acts as an interface between the 'Students' and the 'Librarian'. This system tries
to make the interface as simple as possible and at the same time not risking the security of
data stored in. This minimizes the time duration in which the user receives the books or
magazines.
28
• Front End Client - The Student and Librarian online interface is built using
Visual studio.
• Back End - Oracle 11 g database
The server is directly connected to the client systems. The client systems have access to
the database in the server.
• Librarian can generate reports from the information and is the only authorized personnel
to add the eligible application information to the database.
• Student - They are the people who desire to obtain the books and submit the information
to the database.
• Librarian - He has the certain privileges to add the books and to approval of the
reservation of books.
2.6 CONSTRAINTS
• The Student and Librarian must have basic knowledge of computers and English
Language.
• The Students may be required to scan the documents and send.
(III)USE-CASE DIAGRAM:
The book bank use cases are:
1. book_issue
2. book_return
3. book_order
4. book_entry
29
5. search book_details
ACTORS INVOLVED:
1. Student
2. Librarian
3. Vendor
The librarian initiates this use case when any member returns or request the book and checking if
the book is available.
Initiated by librarian when any member wants to borrow the desired book. If the book is
available, the book is issued.
Initiated by librarian when the requested book is not available in the library at that moment.
The book is reserved for the future and issued to the person when it is available.
Precondition: Initiated only when book is not available.
Normal Flow: It reserved the book if requested.
Post Condition: Mention the entry in catalogue for reservation.
30
Precondition: Member should be valid member of library.
Normal Flow: Librarian enters bookid and system checks for return date of the book.
Alternative Flow: System checks for return date and if it returned late fine message will be
displayed.
The purchase book use-case when new books invoke it or magazines are added to the library.
Precondition: Not available or more copies are required.
Normal Flow: Enter bookid,author information, publication information, purchased date, prize
and number of copies.
31
book_issue
student
librarian
book_return
book_entry
vendor
search book_details
book_order
32
(IV) ACTIVITY DIAGRAM:
Activity diagrams are graphical representations of workflows of stepwise activities and actions
with support for choice, iteration and concurrency. In the Unified Modeling Language, activity
diagrams can be used to describe the business and operational step-by-step workflows of
components in a system. An activity diagram shows the overall flow of control.
shows id
card
request for
specific book
is book
available? no enquires for
alternative book
yes
if satisfied?
borrows
book yes
no
33
Fig4.1 ACTIVITY DIAGRAM [BORROW BOOK]
collects quotation
from vendors
no
if satisfied with
norms?
yes
place order
takes delivery
34
Fig.4.2 ACTIVITY DIAGRAM [ ORDER BOOK]
shows id and
library card
librarian
makes entry
on or before
return date? no
pays fine
yes
librarian approves
transaction
The class diagram, also referred to as object modeling is the main static analysis diagram. The
main task of object modeling is to graphically show what each object will do in the problem
domain. The problem domain describes the structure and the relationships among objects.
35
The ATM system class diagram consists of four classes:
1. Student
2. Book
3. Issue
4. Return
5. Vendor
6. Details
1) STUDENT:
It consists of twelve attributes and three operations. The attributes are enrollno, name, DOB,
fathername, address, dept name, batch and book limits. The operations of this class are
addStInfo(), deleteStInfo(), modifyStInfo().
2) BOOK:
It consists of ten attributes and four operations. This class is used to keep book
information such as author, title, vendor, price, etc
3) ISSUE:
It consists of eight attributes and two operations to maintain issue details such as, issue date,
accno of issued book, name of the student who borrowed book.
4) RETURN:
It consists of eight attributes and two operations to maintain issue details such as, issue
date, accno of issued book, name of the student who borrowed book.
5) STUDENTS:
The attributes of this class are name, dept ,year ,bcode no The operation is display
students().
6) DETAIL:
The attributes of this class are book name, author, bcode no The operations are delete
details().
36
Fig.5. CLASS DIAGRAM FOR BOOK BANK SYSTEM
37
(VI) SEQUENCE DIAGRAM:
A sequence diagram represents the sequence and interactions of a given USE-CASE or scenario.
Sequence diagrams can capture most of the information about the system. Most object to object
interactions and operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.
An event also is considered to be any action by an object that sends information. The event line
represents a message sent from one object to another, in which the “form” object is requesting an
operation be performed by the “to” object. The “to” object performs the operation using a method
that the class contains.
It is also represented by the order in which things occur and how the objects in the system send
message to one another.
38
: issue : return search DB
39
1: request book
7: request for another book 14:enter issue data
13:provide student details
19:request toreturn book : issue
: librarian 17:updated successfully
6: not available
12:avilable 15:update issue status
18:issue book
: student 24:book returned 16:issue status updated
4: not avilable
22:return status updated
10:available
: return
search
It consists of state, events and activities. State diagrams are a familiar technique to describe
the behavior of a system. They describe all of the possible states that a particular object can get
into and how the object's state changes as a result of events that reach the object
40
star book book
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed.
[Link] DIAGRAM
41
(IX) IMPLEMENTATION OF DOMAIN OBJECTS LAYER AND TECHNICAL
SERVICE LAYER
/**
@roseuid 51187CA503B2
*/
public book()
{
/**
@roseuid 510F44A7007E
*/
public void viewBookDetails()
{
/**
@roseuid 510F44B50217
*/
public void addbookinfo()
{
/**
@roseuid 510F44BD0063
*/
42
public void deletebookinfo()
{
/**
@roseuid 510F44C60045
*/
public void modifybookinfo()
{
}
}
/**
void [Link](){
void [Link](){
}
void [Link](){
}
void [Link](){
}
void [Link](){
}
void [Link](){
*/
43
/**
@roseuid 5100DE750281
*/ public
issue()
{
}
}
//void [Link](){
//
// }
//void [Link](){
//
// }
/**
@roseuid 50F92E4D0177
*/ public
return1()
{
/**
@roseuid 50F91C69005D
*/
public void bookreturn()
{
/**
@roseuid 50F91C6C0000
44
*/
public void modify()
{
}
}
/**
@roseuid 50F92E4D00FA
*/ public
student()
{
/**
@roseuid 50F918E6000F
*/
public void add()
{
/**
@roseuid 50F918EB03A9
45
*/ public void
delete()
{
/**
@roseuid 50F918EE029F
*/
public void modify()
{
}
}
/**
@roseuid 5118C814009C
*/
public vendor1()
{
/**
@roseuid 5118B75100AB
*/
public void bookOrder()
{
/**
@roseuid 5118B75702BF
*/
public void modify()
{
46
}
}
//void [Link](){
//
// }
47
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the test
case format. It has all the information like preconditions, input data, output data, post
conditions, etc. It has a defined set of inputs which will provide the expected output.
• Informal test cases: Informal test cases are authored for such requirements where the exact
input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
48
Test Case Input ExpOutput ActOutput Desc
RESULT:
Thus the mini project for Book Bank System has been successfully executed and codes are
generated.
49
Ex no: 3 EXAM REGISTRATION SYSTEM
AIM:
To create a system to perform the Exam Registration system
PROBLEM STATEMENT:
Exam Registration [Link] used in the effective dispatch of registration form to all of the
students. This system adopts a comprehensive approach to minimize the manual work and
schedule resources, time in a cogent manner. The core of the system is to get the online
registration form (with details such as name, [Link] etc.,) filled by the student whose testament is
verified for its genuineness by the Exam Registration System with respect to the already existing
information in the database. This forms the first and foremost step in the processing of exam
application. After the first round of verification done by the system, the information is in turn
forwarded to the Exam Controller. The application is then processed manually based on the report
given by the system. The system also provides the student the list of exam [Link] controller
will be provided with fees details to display the current status of application to the student, which
they can view in their online interface. After all the necessary criteria has been met, the original
information is added to the database and the hall ticket is sent to the student.
1.0 INTRODUCTION
Exam Registration System is an interface between the Student and the Exam Controller
responsible for the Issue of Hall Ticket. It aims at improving the efficiency in the Issue of Hall
ticket and reduces the complexities involved in it to the maximum possible extent.
1.1 PURPOSE
If the entire process of 'Issue of Hall ticket' is done in a manual manner then it would
takes several days for the hall ticket to reach the student. Considering the fact that the number of
students for hall ticket is increasing every year, an Automated System becomes essential to meet
the demand. So this system uses several programming and database techniques to elucidate the
work involved in this process. As this is a matter of National Security, the system has been
carefully verified and validated in order to satisfy it.
1.2 SCOPE
• The System provides an online interface to the user where they can fill in their personal
details and submit the necessary documents (may be by scanning).
• The controller concerned with the issue of hall ticket can use this system to reduce his
workload and process the application in a speedy manner.
• Provide a communication platform between the student and the controller.
• Students will come to know their status of application and the date in which they must
subject themselves for manual document verification.
50
1.3 DEFINITIONS, ACRONYMS AND THE ABBREVIATIONS
• Exam Controller - Refers to the super user who is the Central Authority who has been
vested with the privilege to manage the entire system.
• Student - One who wishes to obtain the Hall Ticket.
• ERS - Refers to this Examination Registration System.
• HTML - Markup Language used for creating web pages.
• J2EE – Java 2 Enterprise Edition is a programming platform java platform for
developing and running distributed java applications.
• HTTP - Hyper Text Transfer Protocol.
• TCP/IP – Transmission Control Protocol/Internet Protocol is the communication
protocol used to connect hosts on the Internet.
1.4 REFERENCES
IEEE Software Requirement Specification format.
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements - Overall
Description will describe major role of the system components and inter-connections. Specific
Requirements will describe roles & functions of the actors.
2. [Link] DESCRIPTION
2.1 PRODUCT PERSPECTIVE
The ERS acts as an interface between the 'student' and the 'exam controller'. This system
tries to make the interface as simple as possible and at the same time not risking the security of
data stored in. This minimizes the time duration in which the user receives the hall ticket.
• Front End Client - The exporter online interface is built using JSP and
HTML.
• Web Server – Apache Tomcat Server (Oracle Corporation)
• Back End - Oracle 11g database
51
2.3 HARDWARE INTERFACE
The server is directly connected to the client systems. The client systems have access to
the database in the server.
2.6 CONSTRAINTS
• The applicants require a computer to submit their information.
• Although the security is given high importance, there is always a chance of intrusion in
the web world which requires constant monitoring.
• The user has to be careful while submitting the information. Much care is required.
(III)USECASE DIAGRAM:
ACTORS INVOLVED:
1. Student
2. System DB
52
USE-CASE NAME: VIEW EXAM DETAILS
The student view the details about the exam schedule which contains Date,time,etc...
Login
Acknowledgement
53
(V)CLASS DIAGRAM:
The class diagram, also referred to as object modeling is the main static analysis diagram. The
main task of object modeling is to graphically show what each object will do in the problem
domain. The problem domain describes the structure and the relationships among objects.
54
The Exam Registration System class diagram consists of four two classes of registration
system.
1. Student_details
2. Exam_details
3. Register
1) STUDENT_DETAILS
It consists of six attributes and six operations. The attributes id, password, name, age, sex,
course. The operations of this class are login(), logout(), conformation(), register(),
newfeesdetails().
2) EXAM_DETAILS
It consists of four attributes and six methods. The attributes are userid, password,
examfees, fees due. The methods are login(),logout(), feesdetails(), displayfees(), conformation(),
examcontroller().
3) REGISTER
This class is used to maintain the registered student information such as, subject registered, date
of registration and etc,.
55
Fig.5.1 CLASS DIAGRAM FOR EXAM REGISTRATION SYSTEM
(VI)INTERACTION DIAGRAM:
A sequence diagram represents the sequence and interactions of a given USE-CASE or scenario.
Sequence diagrams can capture most of the information about the system. Most object to object
interactions and operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.
An event also is considered to be any action by an object that sends information. The event line
represents a message sent from one object to another, in which the “form” object is requesting an
operation be performed by the “to” object. The “to” object performs the operation using a method
that the class contains.
It is also represented by the order in which things occur and how the objects in the system
send message to one another.
56
Fig. 6.1. SEQUENCE DIAGRAM FOR REGISTRATION SYSTEM
The sequence and collaboration diagram represents that the student enter the information to get
the hall ticket and the exam controller issues the hall ticket after verifying the necessary items and
this data are stored in the database.
57
: Exam _details
: System DB
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed.
58
[Link] DIAGRAM
COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships among
components in a system.
[Link] DIAGRAM
59
(VIII) IMPLEMENTATION OF DOMAIN OBJECTS LAYER AND TECHNICAL
SERVICE LAYER
//Source file: D:\\uma\\[Link]
/**
* @roseuid 515AA57101B5
*/
public examDetails()
{
/**
* @roseuid 515AA448037A
*/
public void addExam()
{
/**
* @roseuid 515AA44F00BB
*/
public void updateExam()
{
/**
60
* @roseuid 515AA4570280
*/
public void delExam()
{
}
}
//void [Link](){
//
// }
/**
@roseuid 51342F76033C
*/ public
Register() {
/**
@roseuid 51342C88004E
*/
public void getRegister()
{
/**
@roseuid 51342C8E0271
*/
public void cancelRegister()
{
/**
61
@roseuid 51342CA20109
*/
public void verifyIngormation()
{
}
}
//[Link]()
//[Link](){
// return null;
// }
//[Link](){
//
// }
//[Link](){
//
// }
/**
@roseuid 51342F7602CE
*/
public StudentDetails()
{
/**
@roseuid 51342B4901E4
*/
public void addStudent()
{
62
}
/**
@roseuid 51342B4F03A9
*/
public void updateStudent()
{
/**
@roseuid 51342B58029F
*/
public void getLogic()
{
}
} /** void
[Link](){
}
[Link]()
63
void [Link](){
}
void [Link](){
*/
64
Fig.9.2 LOGIN FORM
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the test
case format. It has all the information like preconditions, input data, output data, post
conditions, etc. It has a defined set of inputs which will provide the expected output.
• Informal test cases: Informal test cases are authored for such requirements where the exact
input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
65
▪ File Name: [Link]
RESULT:
Thus the mini project for Exam Registration system has been successfully executed and codes
are generated.
66
Ex no: 4 STOCK MAINTENANCE
AIM:
To create a system to perform the Stock maintenance
(I)PROBLEM STATEMENT
The stock maintenance system must take care of sales information of the company and must
analyze the potential of the trade. It maintains the number of items that are added or removed.
The sales person initiates this Use case. The sales person is allowed to update information and
view the database.
1.1 PURPOSE
The entire process of Stock maintenance is done in a manual manner Considering the fact
that the number of customers for purchase is increasing every year, a maintenance system is
essential to meet the demand. So this system uses several programming and database techniques
to elucidate the work involved in this process.
1.2 SCOPE
• The System provides an interface to the customer where they can fill in
orders for the item needed.
• The sales person is concerned with the issue of items and can use this
system.
• Provide a communication platform between the customer and the sales
person.
1.3 DEFINITIONS, ACRONYMS AND THE ABBREVIATIONS
• Market Data provider: One who analyze the product and distribute the news.
• Customer: One who takes order of product
• Sales person: One who maintains the stock details
67
1.4 REFERENCES
IEEE Software Requirement Specification format
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements
Overall Description will describe major role of the system components and inter-
Connections
Specific Requirements will describe roles & functions of the actors.
2.0 OVERALL DESCRIPTION
2.1 PRODUCT PERSPECTIVE
The Stock maintenance acts as an interface between the 'customer' and the 'sales person'.
This system tries to make the interface as simple as possible and at the same time not risking the
work of data stored in
68
1. The customer should wait until the trade contractor and other to analyze the product.
2. After the distribution of the news about the product. The customer can take order and
request of sales person to fill it.
69
product details
purchase details
shopkeeper customer
sales details
stock details
company
70
login
order check
product availability
product stock
details
cancle
order
get
payment
recive the
stock
logout
71
The Stock maintenance system class diagram consists of seven classes:
1. PurchaseDetails: One who takes orders for the product?
2. SalesDetails: The customer make an order for the required products.
3. Product Details: The items that are stored as stock.
1. SEQUENCE DIAGRAM
A sequence diagram represents the sequence and interactions of a given
USECASE or scenario. Sequence diagrams can capture most of the
information about the system. Most object to object interactions and operations
are
72
considered events and events include signals, inputs, decisions, interrupts,
transitions and actions to or from users or external devices.
o It is also represented by the order in which things occur and how the objects in
the system send message to one another.
. 6. product available
[Link] item
[Link] delivery
73
Fig.6.1 SEQUENCE DIAGRAM
2. COLLABORATION DIAGRAM
Collaboration diagram and sequence diagrams are alternate representations of an
interaction. A collaboration diagram is an interaction diagram that shows the order of
messages that implement an operation or a transaction. Collaboration diagram is an
interaction diagram that shows the order of messages that implement an operation or a
transaction. Collaboration diagram shows object s, their links and their messages. They can
also contain simple class instances and class utility instances.
During, analysis indicates the semantics of the primary and secondary interactions.
Design, shows the semantics of mechanisms in the logical design of system.
1 request for
8 request for
shopek
custom epe
r
enter the
11 product
2
send for
order
3
5 update product
4 check for
deale databa
e
6 product
74
(VII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
[Link] DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components
of a system where the software components are deployed.
/**
@roseuid 5167CD420232
*/
public productDetails()
{
/**
@roseuid 512702DE0128
*/
public void prodAdd()
75
{
/**
@roseuid 512702E4003E
*/
public void prodDelete()
{
/**
@roseuid 512702EF003E
*/
public void prodUpdate()
{
}
/**
@roseuid 512B3FAC007F
*/
public void prodDetails()
{
}
}//Source file: E:\\10764\\[Link]
/**
@roseuid 5167CD4201D4
*/
public purchaseDetails()
{
/**
@roseuid 5127049302DE
*/
public void save()
{
76
}
/**
@roseuid 512704970232
*/ public void
delete()
{
/**
@roseuid 5127049F00FA
*/
public void purchasedit()
{
/**
@roseuid 512B3FC102C1
*/
public void purchaseDetials()
{
}
}
//Source file: E:\\10764\\[Link]
/**
@roseuid 512840E5009C
*/
public salesDetails()
{
/**
77
@roseuid 512705AD030D
*/
public void sale()
{
}
}
78
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine
whether a system under test satisfies requirements or works correctly. The process of
developing test cases can also help find problems in the requirements or design of an
application.
• Formal test cases: Formal test cases are those test cases which are authored as per the
test case format. It has all the information like preconditions, input data, output data,
post conditions, etc. It has a defined set of inputs which will provide the expected
output.
• Informal test cases: Informal test cases are authored for such requirements where the
exact input and output are not known. In order to test them the formal test cases are
not authored but the activities done and the outcomes are reported once the tests are
run.
79
▪ File Name: [Link]
RESULT:
Thus the mini project for stock maintenance system has been successfully executed and
codes are generated.
80
Ex. No: 5 ONLINE COURSE RESERVATION SYSTEM
AIM:
To create a system through which students can register to the courses desired by them.
(I)PROBLEM STATEMENT
1.0. INTRODUCTION
Course Reservation System is an interface between the Student and the Registrar
responsible for the issue of Course. It aims at improving the efficiency in the issue of Course
and reduces the complexities involved in it to the maximum possible extent.
1.1 PURPOSE
If the entire process of 'Issue of Course' is done in a manual manner then it would
takes several months for the course to reach the applicant. Considering the fact that the
number of applicants for course is increasing every year, an Automated System becomes
essential to meet the demand. So this system uses several programming and database
techniques to elucidate the work involved in this process.
1.2 SCOPE
▪ The System provides an online interface to the user where they can fill in their
personal details and submit the necessary documents (may be by scanning).
▪ The Registrar concerned with the issue of course can use this system to reduce his
workload and process the application in a speedy manner.
81
1.3 DEFINITIONS, ACRONYMS AND THE ABBREVIATIONS
▪ Registrar
Refers to the super user with the privilege to manage the entire system.
▪ Applicant
One who wishes to register the Course
▪ OCRS
Refers to online Course Reservation System.
▪ HTML
Markup Language used for creating web pages.
▪ J2EE
Java 2 Enterprise Edition is a programming platform java platform for developing and
running distributed java applications.
▪ HTTP
Hyper Text Transfer Protocol.
▪ TCP/IP
Transmission Control Protocol/Internet Protocol is the communication protocol used
to connect hosts on the Internet.
1.4 REFERENCES
IEEE Software Requirement Specification format.
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements
Overall Description will describe major role of the system components and interconnections.
82
2.0 OVERALL DESCRIPTION
2.1 PRODUCT PERSPECTIVE
The OCRS acts as an interface between the 'Student' and the 'Registrar'. This system
tries to make the interface as simple as possible and at the same time not risking the security
of data stored in. This minimizes the time duration in which the user receives the course.
• Administrator - He has the certain privileges to add the course status and to
approve the issue of course. He may contain a group of persons under him to verify
the documents and give suggestion whether or not to approve the dispatch of course.
2.6 CONSTRAINTS
• The applicants require a computer to submit their information.
• Although the security is given high importance, there is always a chance of intrusion
in the web world which requires constant monitoring.
• The user has to be careful while submitting the information. Much care is required.
83
2.7 ASSUMPTIONS AND DEPENDENCIES
• The Applicants and Administrator must have basic knowledge of computers and
English Language.
(III)USE-CASE DIAGRAM:
ACTORS INVOLVED:
1. Student
2. Registrar
USE-CASE NAME: LOGIN
The user enters the username and password and chooses if the user is student or Registrar. If
entered details are valid, the user’s account becomes available. If it is invalid, an appropriate
message is displayed to the user.
84
view course details
Registrar
Student
login
<<include>>
pay fee
reserve for course
check status
[Link]-CASE DIAGRAM
85
(IV) ACTIVITY DIAGRAM:
86
(V) CLASS DIAGRAM:
The class diagram is a graphical representation of all the classes used in the system and
their operations, attributes and relationships.
The course registration system makes use of the following classes:
1. Student
2. Course Catalog
3. Reserve Course
1) STUDENT:
It consists of the details of all the students present in the database. The attributes
present in this class are student id, student name, student qualification, student address1,
student address2, student address3, student mobile no, student emailed,, student dob,
student sex. The object of this class is created as soon as the student registers to a
course. The operations available to this class are add details (), modify details (), del
details (), reserve course().
2) COURSE CATALOG:
The course catalog class consist of course id, course name, course duration
course fee, course eligibility, total no of seat, course avail seat. The operations are add
course(), update course(), del course().
3) RESERVE COURSE:
The reserve catalog class consists of student id, course id, date, amt paid, reg id,
DD no. the operation are get course details(), check eligibility(), confirm registration().
87
Fig.5. CLASS DIAGRAM
88
(VI) INTERACTION DIAGRAM:
• A sequence diagram represents the sequence and interactions of a given USE-CASE or
scenario. Sequence diagrams can capture most of the information about the system.
Most object to object interactions and operations are considered events and events
include signals, inputs, decisions, interrupts, transitions and actions to or from users or
external devices.
• An event also is considered to be any action by an object that sends information. The
event line represents a message sent from one object to another, in which the “form”
object is requesting an operation be performed by the “to” object. The “to” object
performs the operation using a method that the class contains.
• It is also represented by the order in which things occur and how the objects in the
system send message to one another.
• The sequence diagram for each USE-CASE that exists when a user administrator, check
status and new registration about course registration system are given.
• Users have to first login to the system before performing any operation. The user has to
provide the necessary details to the system for login.
89
: Student UI : ReserveCourse : Course Catalog
Login(username,pwd)
Check Data
getCoursedetails
Reserve course
confirmReservation
getCourseDetails
ckeckEligibilityCriteria
Eligible&Seat available
[Link] DIAGRAM
90
:
Cata
: 1 )
4 View course
1
8 Reserve
1 Fills up the
5
1 6
3
7
1 9 View
1 Registers for 2 Check
1 Eligible&Seat
:
U
1
[Link] DIAGRAM
• After login, the student has to register to a course of his choice. The student can view all
the courses available to him and register to a course suitable to him. The student may
view the course details before registration.
• A student may wish to view course details before registration. For this, the student has to
first login and select the course details he wishes to see.
91
(VII) STATE CHART DIAGRAM:
Every object undergoes through some state and on receiving some event the state gets changed.
This transition of the state can be represented by the state transition diagram.
Login to course registration View get list of courses Select Enter data Fill form
course course
after clicking
Gets receipt
not eligible
Reserves
seat
92
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed.
[Link] DIAGRAM
COMPONENT DIAGRAM:
Component diagrams are used to visualize the organization and relationships among
components in a system.
[Link] DIAGRAM
93
(IX) IMPLEMENTATION OF DOMAIN OBJECTS LAYER AND TECHNICAL
SERVICE LAYER
/**
@roseuid 512350660128
*/
public coursecatalog()
{
/**
@roseuid 51234FBD005D
*/
public void addcourse()
{
/**
@roseuid 51234FC80138
*/
public void updatecourse()
{
/**
@roseuid 51234FD20251
*/
public void deletecourse()
{
}
}
94
public class reservecourse
{ private integer studentid;
private integer courseid;
private date date; private
double amountpaid; private
integer registerid;
private string DDno;
/**
@roseuid 512350660167
*/
public reservecourse()
{
/**
@roseuid 51234EE5007D
*/
public void getcoursedetails()
{
/**
@roseuid 51234EF3003E
*/
public void checkeligibility()
{
/**
@roseuid 51234F0102AF
*/
public void confirmreg()
{
}}
95
16) Home Page
Login Page
96
Course Catalog
Registration Form
ThanU Page
97
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the
test case format. It has all the information like preconditions, input data, output data,
post conditions, etc. It has a defined set of inputs which will provide the expected
output.
• Informal test cases: Informal test cases are authored for such requirements where the
exact input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
98
Test Case Input ExpOutput ActOutput Desc
RESULT:
Thus the mini project for Course Reservation system has been successfully executed and
codes are generated.
99
Ex. No.: 6 E-TICKETING
AIM:
To create an automated system to perform E-ticketing.
Our project is carried out to develop software for online Railway Reservation System. This
system has various options like reservation, cancellation and to view details about available
seats. Our project mainly simulates the role of a Railway ticket booking officer, in a
computerized way.
The reservation option enables a person to reserve for a ticket at their home itself. All he/ she
has to do is to just login and enter the required details. After this the reservation database is
updated with the person details, train name and also the source and destination place.
The cancellation option enables the passenger to cancel the tickets that has been already booked
by him/her.
The availability option prompts the person to enter train number, train name and date of travel.
After this the availability database is accessed and available positions are produced.
1.0 INTRODUCTION
The manual system of ticket reservation takes more time and the number of reservations per
day is limited. To increase the efficiency of the process, we go for online ticket reservation
system. This system supports online ticket booking.
1.1 PURPOSE
If the entire process of reservation is done in a manual manner then it would takes
several months for reservation to reach the applicant. Considering the fact that the number of
passenger is increasing every year, an Automated System becomes essential to meet the
demand. So this system uses several programming and database techniques to elucidate the
work involved in this process. As this is a matter of National Security, the system has been
carefully verified and validated in order to satisfy it.
1.2 SCOPE
• The System provides an online interface to the user where they can fill in their personal
details and submit the necessary documents (may be by scanning).
• The authority concerned with the issue of railway can use this system to reduce his
workload and process the application in a speedy manner.
100
1.3 DEFINITIONS, ACRONYMS AND THE ABBREVIATIONS
• Passenger – The person that who wishes to obtain the railway ticket.
• PNR – Passenger Name Records
• HTML - Markup Language used for creating web pages.
• J2EE – Java 2 Enterprise Edition is a programming platform java platform for
developing and running distributed java applications.
1.4 REFERENCES
IEEE Software Requirement Specification format.
101
• Web Server – Apache Tomcat Server (Oracle Corporation)
• Back End - Oracle 11g database
2.6 CONSTRAINTS
• The passengers require a computer to submit their information.
• Although the security is given high importance, there is always a chance of intrusion in
the web world which requires constant monitoring.
• The user has to be careful while submitting the information. Much care is required.
The online ticket reservation system uses the following use cases:
1. Request for seat availability
2. makeReservation
3. Cancellation
4. Check status
5. Print ticket
ACTORS INVOLVED:
102
1) System
2) Passenger
The passenger can view the train available in the database for deciding which train ticket he
wishes to reserve. The passenger can search the train information based on journey date, train
type and reservation type. The passenger can view the details of flights such as, train number,
source station, destination station, arrival time, departure time, fare and number of seats
available.
The passenger can view the status of the reserved tickets. So the passenger can confirm his/her
travel.
103
request for seat availability
<<includ>>
print
makeReservation
Passenger System
cancellation
check status
104
(IV) ACTIVITY DIAGRAM
Activity diagrams are graphical representations of workflows of stepwise activities and actions
with support for choice, iteration and concurrency. In the Unified Modeling Language, activity
diagrams can be used to describe the business and operational step-bystep workflows of
components in a system. An activity diagram shows the overall flow of control. An activity is
shown as an rounded box containing the name of the operation.
Yes
Is it valid
No data?
105
Fig.4.2 ACTIVITY DIAGRAM [Ticket Reservation]
106
request to check
pnr status
107
Fig.4. 4ACTIVITY DIAGRAM [Ticket Cancellation] (V) CLASS
DIAGRAM:
The class diagram, also referred to as object modeling is the main static analysis diagram. The
main task of object modeling is to graphically show what each object will do in the problem
domain. The problem domain describes the structure and the relationships among objects.
108
.
The online ticket reservation system makes use of the following classes:
1. ticketReservation
2. trainInfo
3. passengerInfo
4. seatAvailStatus
1. TICKETRESERVATION
It consists of twelve attributes and two operations. It records the details of every ticket
booked such as ticket number, passenger ID, source and destination station and etc.
2. TRAININFO
It stores the details of all the trains such as train number, train name, speed, source and
destination stations, etc.
3. PASSENGERINFO
It consists of seven attributes and three operations. This class is used to store passenger
details such as, passenger name, age, address and etc.
4. SEATAVAILSTATUS
This class is used to update the number of seats available for a particular train by using
updateStatus() operation.
109
Fig.5.1 CLASS DIAGRAM FOR E-TICKETING
110
(VI) INTERACTION DIAGRAM:
• If the password and username are correct then applicants are used to login the filling
details.
• Passenger are used to selecting the train and book the tickets.
• Now the E-Ticketing DataBase verify the filling Details.
• And then the E-Ticketing DataBase displays the ticket information.
• Incase of any sudden change of the plan, the applicant can cancel the ticket.
111
Fig.6.1. SEQUENCE DIAGRAM
112
7: Verify given details
1: Login(username,password)
5: Enter the passenger details
6: Perform money transaction
13: Print the ticket reserveTicket :
ticketReservation
System
14: request to cancel ticket 8: Update status
21:
113
(VII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed.
[Link] DIAGRAM
/**
@roseuid 5121D2AB01D4
*/
114
public passengerInfo()
{
}
/**
@roseuid 51188FBF0203
*/
public void addPassenger()
{
}
/**
@roseuid 51188FD00148
*/
public void updatePassenger()
{
}
/**
@roseuid 51188FD900FA
*/
public void delPassenger()
{
}
} /**
void [Link](){
}
void [Link](){
}
void [Link](){
}
[Link]() */
/**
@roseuid 51133F790138
*/
public setavailStatus()
{
}
/**
115
@roseuid 51133CE3002E
*/
public void updatestatus()
{
}
}
/**
@roseuid 5110DA9C0232
*/ public reserve()
{
}
/**
@roseuid 5110D2CF0203
*/
public void reserveticket()
{
}
/**
@roseuid 5110D562007D
*/
public void cancelticket()
{
}
}
116
//Source file: E:\\sugan\\[Link] public
class trainInfo
{ private integer trainid; private string trainname;
private string sourcestn; private string desstn;
private time depatime; private time arrivaltime;
private stirng traintype; private integer distance;
private string speed; private double fare; private
Integer noOfSeats; public ticketReservation
theTicketReservation;
public seatAvailStatus theSeatAvailStatus;
/**
@roseuid 5121D2AB0186
*/ public trainInfo()
{
}
/**
@roseuid 511896750186
*/
public void addTrainInfo()
{
/**
@roseuid 5118967F0000
*/
public void updateTrainInfo()
{
}
/**
@roseuid 511896880186
*/
public void deleteTrainInfo()
{
}
} /** void [Link](){
}
void [Link](){
}
void [Link](){
*/
117
(X) IMPLEMENTATION OF USER INTERFACE LAYER
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the
test case format. It has all the information like preconditions, input data, output data,
post conditions, etc. It has a defined set of inputs which will provide the expected
output.
118
• Informal test cases: Informal test cases are authored for such requirements where the
exact input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
RESULT:
Thus the mini project for airline reservation system has been successfully executed and
codes are generated.
119
Ex no: 7 SOFTWARE PERSONNEL MANAGEMENT SYSTEM
AIM:
To implement a software for software personnel management system
1.0 INTRODUCTION
1.1 PURPOSE
If the entire process of Software personnel management is done in a manual manner
then it would more time for pay slip generation process. Considering the fact that the number
of employee is increasing every year, a maintenance system is essential to meet the demand.
So this system uses several programming and database techniques to elucidate the work
involved in this process.
120
1.2 SCOPE
▪ Software system allows Administrator to manage its employee in a better way.
▪ When needed, it will take just a few second to find out the background of an employee
and his/her contribution to the organization, it will also facilitate keeping all the records
of employee.
▪ So all the information about an employee will be available in a few seconds, it will also
make it very easy to generate statistical data or custom data, line finding a certain set of
employee.
▪ ADMINISTRATOR
Refers to the super user who is maintaining the employee
details. ▪ Employee
One who works for a software company.
▪ SPMS
Refers to this Software personnel management system.
▪ HTML
Markup Language used for creating web pages.
▪ J2EE
Java 2 Enterprise Edition is a programming platform java platform for developing and
running distributed java applications.
▪ HTTP
Hyper Text Transfer Protocol.
1.4 REFERENCES
121
1.6 TOOLS TO BE USED
• Eclipse IDE (Integrated Development Environment)
• Rational Rose tool (for developing UML Patterns)
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements
Overall Description will describe major role of the system components and inter-connections.
Specific Requirements will describe roles & functions of the actors.
Payment Slip
The payment module greatly reduces the workload of the ADMINISTRATOR
department by automating the payroll process, allowing ADMINISTRATOR to ensure
the payroll functions are completed on time and without errors. The payroll class
122
automatically calculates payment amounts and various deductions such as income tax
before generating pay checks and employee tax reports.
View Salary
The employee views the salary details efficiently from the SPMS. The employees will
also be able to know from the system, the number of hours worked per day and total of
all hours spent on a project and total pay received year-to-date etc.
2.6 CONSTRAINTS
ACTORS INVOLVED:
1. Employee
2. Administrator
123
3. Database Manager
USE-CASE NAME: LOGIN
The Employee login to the system to view the salary details
.
USE-CASE NAME: VIEW EMPLOYEE DETAILS
The Administrator views the details of the employee for the payroll process
124
Login
Job Assigned
Administrator
Create DB
Update DB
Delete DB
Database
Manager
125
(IV) ACTIVITY DIAGRAM:
The activity diagram notation is an action, partition, fork join and object node. Most of
the notation is self explanatory, two subtle points. Once an action finished, there is an
automatic outgoing transaction. The diagram can show both control flow and data flow.
Employee Administrator
Login
Login
view employee
Details
Do Work
Generate
Payroll
View Salary
Details
ViewPayroll
Logout
126
(V) CLASS DIAGRAM:
The class diagram is referred as object modeling in the static analysis diagram. The main task
of object modeling is to graphically show what each object will do in the problem domain.
The problem domain describes the structure and the relationships among objects. The
Software Personnel Management system class diagram consists of four classes
1. Employee class
2. Administrator class
3. Database Manager class
4. Payment class
1)EMPLOYEE CLASS
It consists of seven attributes and two operations. The attributes are empid, empname,
emppassword, address, mobile number, date, Hours Worked. The operations of this class are
Login( ) and viewsalary( ).
2)ADMINISTRATOR CLASS
It consists of attributes Adminid, Adminname and Adminpassword. The operations are login ( ),
Generate payroll ( ), view payroll ( ) and viewemployeedetail ( ).
4)PAYMENT CLASS
The attributes of this class are paymentid, empid, date, Basic pay, HRA, DA, PF, Netpay and
Gross pay. The operation are calculatesalary( ) and GenerateSlip( ).
127
Fig.5. CLASS DIAGRAM FOR SOFTWARE PERSONNEL MANAGEMENT SYSTEM
128
5)INTERACTION DIAGRAM:
▪ A sequence diagram represents the sequence and interactions of a given USE-CASE or
scenario. Sequence diagrams can capture most of the information about the system.
▪ Most object to object interactions and operations are considered events and events
include signals, inputs, decisions, interrupts, transitions and actions to or from users or
external devices.
▪ The “to” object performs the operation using a method that the class contains.
▪ It is also represented by the order in which things occur and how the objects in the
system send message to one another.
▪ The sequence diagram for each USE-CASE that exists when a user administrator, check
status and new registration about passport automation system are given.
EMPLOYEE:
DBManager
UI
employee :
Employee
Seek login
Request Job
Allot job
display payroll
129
1: seek login
3: request job
5: view salary details
employee UI
2:
4: allot job
8: display payroll
7:
6:
DB manager
Seek Login
Generate Payslip
Calculate Salary
return salary
Display Payroll
130
3: view employee details
7: generate payslip
administrator UI
2:
6: display employee details
12: display payroll
5:
11:
4:
8:
9: calculate salary
▪ A transition is a relationship between two state that indicates that when an event occur
the object moves from the prior state to the subsequent.
Display
Payroll
131
(VII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of a system
where the software components are deployed
COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships among
components in a system.
132
(IX) IMPLEMENTATION OF DOMAIN OBJECTS LAYER AND TECHNICAL
SERVICE LAYER
/**
@roseuid 515D15470203
*/
public employee()
{
/**
@roseuid 515D1509029F
*/
public void login()
{
/**
@roseuid 515D150D031C
*/
public void view()
{
}
}
//Source file: [Link]
public class administrator1
{
private int admin_id;
private string
admin_name; private
string admin_pwd;
public employee theEmployee;
133
/**
@roseuid 515D154701A5
*/
public administrator1()
{
/**
@roseuid 515D130F030D
*/ public void
login()
{
/**
@roseuid 515D13140271
*/
public void generatePayroll()
{
/**
@roseuid 515D131F0251
*/
public void viewPayroll()
{
}
}
134
(IX) IMPLEMENTATION OF USER INTERFACE LAYER
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the
test case format. It has all the information like preconditions, input data, output data,
post conditions, etc. It has a defined set of inputs which will provide the expected
output.
135
• Informal test cases: Informal test cases are authored for such requirements where the
exact input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
RESULT:
Thus the mini project for software personnel management system has been successfully
executed and codes are generated.
136
Ex no: 8 CREDIT CARD PROCESSING
AIM:
To create a system to perform the credit card processing
Credit card processing through offline involves the merchant collecting order
information (including credit card numbers), storing this in a database on your site, and
entering it using their on-site merchant credit card processing system. Takes time to
manually enter credit card information for each order. This solution creates following
cons:
· Insecure – there is a possibility that a skilled hacker could break into the
database and steal an entire list of credit card numbers, thereby damaging the
merchant’s reputation with current client.
1.0 INTRODUCTION
When a purchase is made the merchant swipes the card. The information
goes to a gateway processor, which either accepts or rejects the transaction. If it is
137
accepted, the transaction is held until the end of the business day. The merchant
then reenters the transaction via the gateway processor, the data is logged, and the
debt is transferred to the account. The use of an ATM for cash advance is a similar
process.
If you are selling to consumers, merchant services will allow you to expand
your customer base and provide a more convenient method of payment than cash or
checks. And if you are interested in selling over the Internet, accepting credit card
processing is a must. Accepting credit cards allows funds to be transferred to your
bank account in less than a week. This can be a welcome relief for businesses that
experience a tight cash flow.
1.1 PURPOSE
When customers complete their shopping cart, their credit card is preauthorized
and the order is entered into Sales Order. Credit Card Processing dials out and obtains a
credit card payment. Within five minutes the customer receives an e-mail receipt.
1.2 SCOPE
• Automatically connects to your financial network for credit card authorizations and
settlements
• Compliant with Visa and MasterCard Electronic Commerce Indicator (ECI) regulations
• Multiple address verification options available
138
1.3 DEFINITIONS, ACRONYMS AND THE ABBREVIATIONS
1.4 REFERENCES
IEEE Software Requirement Specification format.
This solution involves signing up for a free Business Account. Once this is
done and the e-commerce site is properly configured, you can accept payments from
Visa, MasterCard, Amex, and Discover cards payments.
139
• Web Server - Glassfish application server(SQL Corporation).
• Back End - SQL database.
2.6 CONSTRAINTS
• Trusted if using a well known third-party processor
• Must suite for higher-volume sites
• Cheaper transaction rates
• Getting money transferred may be very fast
• Must provide fraud prevention measures and fraud protection programs
140
Bank Enquiry: Used to get the bank enquiry like pin code to verify your user account.
Issuing card: Used to issuing the card to machine.
Purchase the item: Used to list out the purchase details in shop.
Prepare the bill: Used to issuing the bill for the purchased
item. paying bill: Used to transaction of money to paying the
bill.
ACTORS INVOLVED
Customer/user: The person who order for the item.
Banker: The person to check the account details.
Retailer: The person to preparing the bills.
USE-CASE NAME: PURCHASE PRODUCT
Customer purchases items from ecommerce site then proceeds to the site’s
secure checkout area.
.
USE-CASE NAME: AUTHORIZATION REQUEST
Credit card processor collects billing information from the customer via a secure
connection.
The transaction details are recorded by the credit card processor and results are
securely relayed to the merchant. Merchant’s site receives transaction result and does
appropriate actions (e.g. saves the order & shows message).
141
creating account
bankenquiry
banker
issuing card
customer
retailer
paying bill
142
(IV) CLASS DIAGRAM:
The class diagram, also referred to as object modeling is the main static analysis
diagram. The main task of object modeling is to graphically show what each object
will do in the problem domain. The problem domain describes the structure and the
relationships among objects.
The Credit Card Processing system class diagram consists of three classes.
They are
1. Banker
2. Customer
3. Retailer
[Link] DIAGRAM
▪ Most object to object interactions and operations are considered events and events
include signals, inputs, decisions, interrupts, transitions and actions to or from users
or external devices.
143
▪ The event line represents a message sent from one object to another, in which the
“form” object is requesting an operation be performed by the “to” object.
▪ The “to” object performs the operation using a method that the class contains.
▪ It is also represented by the order in which things occur and how the objects in the
system send message to one another.
▪ The sequence diagram for each USE-CASE that exists when a user administrator,
check status and new registration about passport automation system are given.
C:Customer B:Banker
1: Select Bank
2: Creating Account
3: Requesting Card
4: Enquiry
5: Issuind Card
R:Retailer
6: select shop
7: Purchase Item
9: preparing bills
[Link] DIAGRAM
144
6: select shop
7: Purchase Item 9: preparing bills
8: producing item for billing
10: Swip e t he card
C:Custo R:Retail
mer er
1: Select Bank
2: Creating Account
3: Requesting Card
13: returning amount
14: checking account details
4: Enquiry
B:Banke
r
[Link] DIAGRAM
145
(VI) State chart Diagram:
▪ States of object are represented as rectangle with round corner, the transaction
between the different states.
▪ A transition is a relationship between two state that indicates that when an event
occur the object moves from the prior state to the subsequent.
Start
[ new account
]
creating account
customer
do/ creating account
Exiting account
Request To Bank
[ Customer Enquiry
]
[ Satisfied Customer
]
issuing card
abort
do/ card delivery
End
146
DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of
a system where the software components are deployed.
[Link] DIAGRAM
COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships among
components in a system.
[Link] DIAGRAM
147
(VII) IMPLEMENTATION OF DOMAIN OBJECTS LAYER AND TECHNICAL
SERVICE LAYER
//Source file: E:\\10764\\[Link]
/**
@roseuid 5167CE2902EE
*/
public banker()
{
/**
@roseuid 512848F00127
*/
public void credit()
{
/**
@roseuid 512848FD031A
*/ public
void
verify()
{
/**
@roseuid 512849060098
*/
public void update()
{
}
}
//Source file: E:\\10764\\[Link]
148
public class
customer {
private integer CId;
private string
Cname; private
date Cdob; private
integer
CaccountNo;
private string
CAddress; private
integer CCardNo;
private integer
CPhoneNo;
private string CEmailId;
/**
@roseuid 5167CE29036B
*/
public customer()
{
/**
@roseuid 512849FA0212
*/
public void requestForward()
{
/**
@roseuid 51284A15033B
*/ public void
purchaseThings()
{
}
}
//Source file: E:\\10764\\[Link]
public class
retailer {
private integer
SId; private
string Sname;
private string
Saddress;
149
private integer
Sphoneno;
private integer SemailId;
/**
@roseuid 5167CE29031C
*/
public
retailer(
)
{
/**
@roseuid 51284A9A0366
*/
public void Accept()
{
/**
@roseuid 51284AA2002A
*/ public
void
validate()
{
/**
@roseuid 51284AA602AA
*/
public void
billing()
{
}
}
150
(IX) IMPLEMENTATION OF USER INTERFACE LAYER
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the
test case format. It has all the information like preconditions, input data, output data,
post conditions, etc. It has a defined set of inputs which will provide the expected
output.
• Informal test cases: Informal test cases are authored for such requirements where the
exact input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
151
Test Case Input ExpOutput ActOutput Desc
RESULT
Thus the mini project for credit card processing system has been successfully
executed and codes are generated.
152
Ex no: 9 E-BOOK MANAGEMENT SYSTEM
AIM:
To create a system to perform E- book Management System.
1.1 PURPOSE
If the entire process of 'Issue of Books or Magazines' is done in a manual
manner then it would take several months for the books or magazines to reach the
applicant. Considering the fact that the number of students for Book Bank is
increasing every year, an Automated System becomes essential to meet the
demand. So this system uses several programming and database techniques to
elucidate the work involved in this process. The system has been carefully verified
and validated in order to satisfy it.
153
1.2 SCOPE
The System provides an online interface to the user where they can fill in
their personal details and submit the necessary documents (may be by scanning).
The authority concerned with the issue of books can use this system to reduce his
workload.
E-book manager
Refers to the super user who is the Central Authority who has been vested with
the privilege to manage the entire system.
User
One who wishes to obtain the Books or Magazines.
Visitor
One who visits to obtain Books or Magazines.
Administrator
One who manages and maintain Books or Magazines.
1.4 REFERENCES
IEEE Software Requirement Specification format
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements.
154
Overall description will describe major role of the system components and
interconnections.
Web Server
Apache Tomcat application server (Oracle Corporation).
Back End
Oracle 11g database
Librarian can generate reports from the information and is the only authorized
personnel to add the eligible application information to the database.
User
They are the people who desire to obtain the books and submit the information to
the database.
Visitor
They are the person who visits the E-book system
155
Administrator
He has the certain privileges to add the books and to approval of the
reservation of books.
2.6 CONSTRAINTS
The Students require a computer to submit their information.
The user has to be careful while submitting the information. Much care is required.
(III)USE-CASE DIAGRAM:
Actors involved:
1. Register User
2. Visitor
3. Administrator
2. Update:
The record would be selected using the student id.
156
The updates can be made on full items only.
->name
->address
->phone no
The search result would produce a list of books, which match the search parameters.
6. Check in a book:
Librarians and member of the library can check in a book using its call no.
157
Regist
Visito
Logi
Administrat
Search
Downlo
Register
Payme
Publish
Updat
[Link]-CASE DIAGRAM
158
Login
Welcome
page
Search Online
book Reading
Download
Payment
[Link] DIAGRAM
159
(V)CLASS DIAGRAM
The class diagram, also referred to as object modeling is the main static analysis
diagram. The main task of object modeling is to graphically show what each object
will do in the problem domain. The problem domain describes the structure and the
relationships among objects.
The E-book Management system class diagram consists of five classes:
1. Login
2. Registered User
3. Administrator
4. Book
5. Visitor
6. download
7. Logout
2) Registered User: It consists of six attributes and four operations. The attributes
are user id, name, password, email id, phone no, security question. The
operations of this class are download(), login(),search(),register().
4) Book: It consists of four attributes and two operations. The attributes are book
id, book name, author, and price. The operations of this class are update(), add().
5) Visitor: It consists of two attributes and two operations. The attributes are user
name, email id. The operations of this class are search book(), read book().
6) Download: It consists of two attributes and two operations. The attributes are
user id, book id, date, and amount. The operations of this class are search
download ().
7) Logout:
Logout from the system.
160
Fig.5. CLASS DIAGRAM
161
(VI) INTERACTION DIAGRAM:
• It is also represented by the order in which things occur and how the
objects in the system send message to one another.
• The two sequence diagram and two collaboration diagram one for
Registered user and another for visitor are given below
162
Book
: Visitor
Registered is granted
Search book
Display Book
1: seek login
register user UI
2: login agreed
7: display payment
5: 3: search book
9: downloading
Book
163
4: check availability of book
2: registered is granted
5: display book
The diagrams show first login to the system and the pin no is entered and
check the pin .Get no and validate password check the condition based on
condition book issue and return are done. Pay the online and renewed .Finally
logout from the system.
164
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical
components of a system where the software components are deployed.
COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships among
components in a system.
[Link] DIAGRAM
165
(X) IMPLEMENTATION OF DOMAIN OBJECTS LAYER AND TECHNICAL
SERVICE LAYER
//Source file:
[Link] public
class administrator
{ private
int adminId;
private string
name;
private string
emailId;
private string
pwd;
public visitors theVisitors;
public administrator()
{
}
/**
@roseuid 515D119D004E
*/
public void update()
{ }
public void
record()
{
}
} //Source file:
[Link]
public class
book {
private string
bookid;
private string
bookname;
private string
author; private
int prize;
public visitors theVisitors;
/**
@roseuid 515D12350203
*/
public book()
{
166
}
/**
@roseuid 515D11E5005D
*/
public void add()
{
/**
@roseuid 515D11E800CB
*/
public void update()
{
}
}
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
167
Types of test cases
• Formal test cases: Formal test cases are those test cases which are authored as per the
test case format. It has all the information like preconditions, input data, output data,
post conditions, etc. It has a defined set of inputs which will provide the expected
output.
• Informal test cases: Informal test cases are authored for such requirements where the
exact input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
RESULT:
Thus the mini project for E-Book System has been successfully executed and
codes are generated.
168
Ex no: 10 RECRUITMENT SYSTEM
AIM:
To create an automated system to perform the Recruitment System Process.
1.0 INTRODUCTION
Recruitment System is an interface between the Applicant and the Organization
responsible for the Recruitment. It aims at improving the efficiency in the Recruitment process
and reduces the complexities involved in it to the maximum possible extent.
1.1 PURPOSE
If the entire process of ‘Recruitment' is done in a manual manner then it would takes
several days for the recruitment. Considering the fact that the number of applicants for
recruitment is increasing every year, an Automated System becomes essential to meet the
demand. So this system uses several programming and database techniques to elucidate the
work involved in this process.
1.2 SCOPE
▪ The System provides an online interface to the user where they can fill in their personal
details and apply for the job.
169
▪ The Organization (HR-Department) concerned with the recruitment process can make
use of this system to reduce their workload and process the application in a speedy
manner.
1.4 REFERENCES
IEEE Software Requirement Specification format.
170
• Rational Rose tool (for developing UML Patterns)
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements
Overall Description will describe major role of the system components and inter-connections.
▪ HR Manager can generate reports from the information and he/she is the only authorized
personnel to add the eligible application information to the database.
171
2.5 USER CHARACTERISTICS
▪ Applicant
These are the persons who desire to apply for the job.
▪ Organization
These are the person with certain privileges to announce recruitment depending upon the
organization need. He/ She may contain a group of persons under him/her to publish
advertisement and give suggestion whether or not to approve the recruitment.
▪ HR
He/ She is the person who upon receiving intimation from the RS, perform a personal
verification of the applicants and see if he/she has eligibility for the advertised job
through a process of Test and Interview.
2.6 CONSTRAINTS
▪ The Applicants require a computer to submit their information.
1. Advertisement
2. Apply for job
3. Test
4. Interview
5. Recruit Applicants
18) ACTORS INVOLVED:
Actors are as follows:
1. Applicant
2. Organization
3. HR
172
19) ACTORS DOCUMENTATION:
▪ Applicant
Applicant is an actor who applies for the job vacancy. If he/she gets selected then HR
department sends the Interview call letter.
▪ HR
HR is an actor who informs about the vacancy to their Organization. HR recruits the
applicants based on the required skill for the vacant position and shortlist them. HR is
also responsible for Interview Scheduling.
▪ Organization
Organization is an actor who announces the Advertisement for vacancy.
Description: This Use Case is initiated by Applicants. Online forms are filled by the Applicants
and submitted to the organization.
Flow of Events: 1. HR processes the filled forms.
2. HR selects the list of eligible Applicants.
Pre-Condition: Online form must exist.
Post-Condition: Forms filled are stored in an Information System for processing. The filled
forms are sent to the HR. The HR produces the list of eligible Applicants.
Description This Use Case is initiated by HR. The lists of selected Applicants are Informed
.The Test and Interviews are conducted by the HR of the region that has the vacancy.
Flow of Events: 1. HR schedules the interview process.
2. HR conducts test and interview for the applicant via online system.
3. Who clear the interview process are selected.
Pre-Condition: Applicants must meet eligibility criteria.
Post-Condition: Applicants clears interview process OR doesn’t clear interview process.
173
USE CASE: TEST.
Description: This Use Case is initiated by the HR. A test will be conducted by the HR
Flow of Events 1. The applicants undergo the Test process.
2. He/ She clear or not clear the Test.
Pre-Condition: Applicant is selected for the Test.
Post-Condition: Applicant clear or not clear the Test.
Description: This Use Case is initiated by the HR. An Interview will be conducted by the HR
Flow of Events 1. The applicants undergo the Interview process.
2. He/ She clear or not clear the Interview.
Pre-Condition: Applicant is selected for the Interview.
Post-Condition: Applicant clear or not clear the Interview.
USE CASE: RECRUITED APPLICANTS
Description: This Use Case is initiated by the HR. The selected applicants are recruited by HR.
Flow of Events 1. The applicants clear the Test.
2. The applicants clear the Interview.
Pre-Condition: Applicant is selected for the Test and Interview.
Post-Condition: Applicant clears Test and Interview.
174
Fig 3. USE CASE DIAGRAM FOR RECRUITMENT SYSTEM
175
(IV) ACTIVITY DIAGRAM:
The activity diagram represents the series of activities that are ocurring between the
[Link] is activity diagram which represents the recruitment process .
Selected Applicant
called for Interview
Test Interview
Fix Salary
176
(V) CLASS DIAGRAM:
The UML class diagram illustrates class interfaces and their actions. They are used for static
object modeling. The problem domain describes the structure and the relationships among
objects.
1) APPLICANT CLASS:
It consists of eight attributes and two operations. The attributes are Appl-id, Appl-name,
Appl-DOB, Appl-Gender, Appl-Qualification, Appl-phone, Appl-emailid, [Link]
operation of this class are view jobs ( ) and Apply ( ).
2) ORGANIZATION CLASS
The attributes of this class are Org-name, Org-Ph-No, and Org-Addr. The operation of this class
are HR-Dept( ), Mkt-Dept( ) and Account-Dept( ).
3) HR DEPARTMENT CLASS
The attributes of this class are Emp-id, Emp-name, Emp-DOB, Emp-Gender, Emp-Phone,
Empemailid, Emp-addr. The operation are Planning( ), Policies( ),Strategies( )
4) ADVERTISEMENT CLASS
The attributes of this class are Adv-No, Adv-Name and Adv-description. The operation is
display( ).
5) RECRUITMENT CLASS
The attributes are Rec-Designation and Rec-Totalcandiate. The operation is recruit( ).
177
Fig.5 .CLASS DIAGRAM FOR RECRUITMENT SYSTEM
▪ A sequence diagram illustrates a kind of format in which each object interacts via
message. It is generalize between two or more specialized diagram.
178
Advertisement Organisation
: Applicant Recruitment
Committee : HR
View Jobs
Attend Test
Evaluate Test
Attend Interview
179
1: view jobs
appilicant advertisement
6: attend interview
2: apply for jobs
5: send interview call letter/emil
7: applicant passed test & interview informed
8: salary fixed/received
4: analyse applicant resume
3: forward applicants
organisation recuitment
commited=HR
▪ Every object undergoes through some state and on receiving some event the state gets
changed. This transition of the state can be represented by the state transition diagram.
Interview
Salary
Recruit
180
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed.
[Link] DIAGRAM
Component diagrams are used to visualize the organization and relationships among
components in a system.
[Link] DIAGRAM
181
(IX) IMPLEMENTATION OF DOMAIN OBJECTS LAYER AND TECHNICAL
SERVICE LAYER
21) //Source file:
[Link] public class
recruitment
{ private string
rec_designation;
private int rec_totalcandidate;
/**
@roseuid 515D0EFE0290
*/
public recruitment()
{
/**
@roseuid 515D0DC4031C
*/
public void recruit()
{
}
}
/**
@roseuid 515D0EFE02BF
*/
public HRDepartment()
{
/**
@roseuid 515D0D8F0261
*/
public void planning()
{
182
/**
@roseuid 515D0D940242
*/ public void
policies()
{
/**
@roseuid 515D0D9702DE
*/ public void
strategies()
{
}
}
[Link] Form
183
TEST CASES
A TEST CASE is a set of conditions or variables under which a tester will determine whether a
system under test satisfies requirements or works correctly. The process of developing test cases
can also help find problems in the requirements or design of an application.
• Formal test cases: Formal test cases are those test cases which are authored as per the
test case format. It has all the information like preconditions, input data, output data,
post conditions, etc. It has a defined set of inputs which will provide the expected
output.
• Informal test cases: Informal test cases are authored for such requirements where the
exact input and output are not known. In order to test them the formal test cases are not
authored but the activities done and the outcomes are reported once the tests are run.
RESULT:
Thus the mini project for recruitment system has been successfully executed and codes are
generated.
184