oosd lab manualmec
Post on 04-Apr-2018
226 Views
Preview:
TRANSCRIPT
-
7/29/2019 OOSD Lab ManualMEC
1/24
INDEX
S.NO LIST OF EXPERIMENT
1 PAYROLL PROCESSING
2 ONLINE SHOPPING
3 ONLINE VOTING SYSTEM
4 BANKING SYSTEM
CONTENT BEYOND SYLLABUS
5AIRLINE RESERVATION SYSTEM
6LIBRARY MANAGEMENT SYSTEM
7 HOTEL MANAGEMENT SYSTEM
-
7/29/2019 OOSD Lab ManualMEC
2/24
THEORY OF CASE TOOLS
DEFINITIONS:
UML (UNIFIED MODELING LANGUAGE):
Unified Modeling Language is a standard language which is used to develop the
object oriented software and software development process.
UML DIAGRAMS ARE:
USE CASE DIAGRAM
SEQUENCE DIAGRAM
CLASS DIAGRAM
USE CASE DIAGRAM:
A Use case is a set of scenario that describes an interaction between user and a
system. A Use case diagram displays the relationship among Actors and Use cases.
The two main components of Use case diagrams are:
1. Use cases Functions
2. Actors-User
SEQUENCE DIAGRAM:
It describes the behavior of a system by viewing the interaction between the
system and its environment.
Sequence diagram has two dimensions:
1. Vertical dimension represents the life time.
2. Horizontal dimension represents the object.
CLASS DIAGRAM:
It represents the class name, attributes and list of methods which are going to use
the software development process.
-
7/29/2019 OOSD Lab ManualMEC
3/24
1. PAYROLL PROCESSING
AIM:
To implement the Payroll Processing using Rational Software.
1. ALGORITHM FOR USECASE DIAGRAM:Step 1: Identify the Actors and Use cases.
In this system, the actors and use case are:
Actors : Employee, Administrator, System and Database.Use cases : Employee details, Validity check, Payroll processing, View and
Print the salary details.
Step 2: Build the relationship between actors and use cases.
The Use case diagram for the payroll processing is given in Fig (1).
-
7/29/2019 OOSD Lab ManualMEC
4/24
Administrator
Employee Details
View and Print the SalaryDetails
Employee
Validity Check
Database
SystemPayroll Processing
Fig (1). Use case Diagram for payroll Processing
2. ALGORITHM FOR SEQUENCE DIAGRAM:
Step 1: Identify the objects.
In this system, the objects are: Employee, administrator, Systems and Database.
Step 2: Identify the sequence of events.
Step 3: Enter the employee ID.
Step 4: Perform the computations.
Step 6: Save the details in database.
Step 7: Send the details to the system.
Step 8: View and print the salary details.
The sequence diagram for the payroll processing is given in Fig (2).
-
7/29/2019 OOSD Lab ManualMEC
5/24
Fig 2. Sequence Diagram for Payroll Processing
3.
ALGORITHM FOR CLASS DIAGRAM:
Step 1: Create class diagram for each identified objects under sequence diagram.
Identified objects are: User, System and Database.
Step 2: Class diagram for each object is divided into three parts.
Top Portion represents the Class Name.
Middle Portion represents the Attributes.
Bottom Portion represents the Methods.
The Class diagram for the Payroll Processing is shown in Fig (3).
Administrator
Employee System Database PayrollProcessing
1: Provide ID2: Enter ID
3: Validation check
4: Provide deatils
6: Send details
5: Procssing
7: Give details8: View details
-
7/29/2019 OOSD Lab ManualMEC
6/24
Fig (3) Class diagram for Payroll Processing
Procedure to write the software for the Payroll Processing using Rational
Software tool
Selecting the software:1. Click start Rational Software Rational Administrator.
Create the project:2. Click SelectFileNew ProjectGive name to the
fileBrowseNextPassword Name and Conformation PasswordNext.
-
7/29/2019 OOSD Lab ManualMEC
7/24
Selecting the database:
3. CreateMS-AccessFinish.
Open the Rational Rose Tools:
4. Click toolsRational Rose.
To draw the diagram:
5. Click Untitled (Give name to the file)Right clickUse casediagramSequence diagramClass diagram.
6. Click Use case diagramThe symbols Are displayed then we can build the usecase diagram.
7. Click Sequence diagram The symbols Are displayed then we can build thesequence diagram.
8. Click Class diagram
The symbols Are displayed then we can build the classsdiagram.
Generate the coding form:9. Click ComponentRight ClickSave the FileRight ClickOpen
specificationSelect the languageVBRealizeChoose Component.
10.Click Component ViewConnectPasswordIf the password is matched thenthe code will be generated automatically for the function which is already
mentioned in the class diagram.
PROGRAM:
-
7/29/2019 OOSD Lab ManualMEC
8/24
SAMPLE OUTPUT:
S.no name dept age designation Sex Basic
pay
HRA DA PF Gross
pay
Net
pay
RESULT:
Thus the Payroll Processing was developed using rational software.
2.ONLINE SHOPPING
AIM:
To implement Online Shopping using Rational Software.
ALGORITHM:
-
7/29/2019 OOSD Lab ManualMEC
9/24
1.ALGORITHM FOR USECASE DIAGRAM:
Step 1: Identify the Actors and Use cases.
In this system, the actors and use case are:
Actors : site visitor, web site, serverUse cases : Help desk system
Step 2: Build the relationship between actors and use cases.The use case diagram for online shopping system is given in Fig (1).
Fig(1). Use case diagram for online shopping system
2.ALGORITHM FOR SEQUENCE DIAGRAM:
Step 1: Identify the objects.
In this system, the objects are: site visitor, web site, server
Step 2: Identify the sequence of events.
Step 3: The visitor request for product.
-
7/29/2019 OOSD Lab ManualMEC
10/24
Step 4: Servlet shows the list of products to the desk engine
Step 5: Desk engine return the product list to the user
Step 6: User select product and request title for the product
Step 7: User request foe selection of texts, desk engine identifies fag texts
Step 8: If fag text is found user sends key word for search for new frame
Step 9: Desk engine returns the fag titles to the userThe Sequence diagram for the online shopping application is given in Fig (2)
Fig (2). Sequence diagram for online shopping system
3.ALGORITHM FOR CLASS DIAGRAM:
Step 1: Create class diagram for each identified objects under sequence diagram.Identified objects are: site visitor, web site and server.
Step 2: Class diagram for each object is divided into three parts.
-
7/29/2019 OOSD Lab ManualMEC
11/24
Top Portion represents the Class Name.
Middle Portion represents the Attributes.
Bottom Portion represents the Methods.
The Class diagram for online shopping system is shown in Fig (3).
Fig (3). Class diagram for online shopping system
Procedure to write the software for online shopping using Rational Software tool
-
7/29/2019 OOSD Lab ManualMEC
12/24
Selecting the software:1. Click start Rational Software Rational Administrator.
Create the project:
2. Click Select
File
New Project
Give name to thefileBrowseNextPassword Name and Conformation PasswordNext.
Selecting the database:3. CreateMS-AccessFinish.
Open the Rational Rose Tools:
4. Click toolsRational Rose.
To draw the diagram:
5. Click Untitled (Give name to the file)Right clickUse case
diagram
Sequence diagram
Class diagram.
6. Click Use case diagramThe symbols Are displayed then we can build the usecase diagram.
7. Click Sequence diagram The symbols Are displayed then we can build thesequence diagram.
8. Click Class diagram The symbols Are displayed then we can build the classsdiagram.
Generate the coding form:
9. Click ComponentRight ClickSave the FileRight ClickOpenspecificationSelect the languageVBRealizeChoose Component.
10.Click Component ViewConnectPasswordIf the password is matched thenthe code will be generated automatically for the function which is already
mentioned in the class diagram.
PROGRAM:
-
7/29/2019 OOSD Lab ManualMEC
13/24
SAMPLE OUTPUT:
S.NO SITE
VISITOR
WEB SITE SERVER RESULT
RESULT:
Thus the Online Shopping was developed using rational software.
3.ONLINE VOTING SYSTEM
AIM:
-
7/29/2019 OOSD Lab ManualMEC
14/24
To implement Online Shopping using Rational Software.
ALGORITHM:
1.ALGORITHM FOR USECASE DIAGRAM:
Step 1: Identify the Actors and Use cases.
In this system, the actors and use case are:
Actors : site visitor, web site, server
Use cases : Help desk system
Step 2: Build the relationship between actors and use cases.
The use case diagram for online voting system is given in Fig (1).
loginform
id proof
voter information
voting infor
votercontroller
verifier
poling officer
voter
check id
reply
require form
reply
party
reply
select
Fig(1). Use case diagram for online voting system
2.ALGORITHM FOR SEQUENCE DIAGRAM:
Step 1: Identify the objects.
In this system, the objects are: site visitor, web site, server
-
7/29/2019 OOSD Lab ManualMEC
15/24
Step 2: Identify the sequence of events.
Step 3: The voter login into the system.
Step 4: verifier verifies the voter details.
Step 5: The voter information stored in the controller
Step 6: The voter polling the vote in online.
The Sequence diagram for the online voting system application is given in Fig (2)
voter verifier controller polling officer
1: login
2: reply login
3: voter information
4: reply
5: voting
6: reply voted
Fig (2). Sequence diagram for online voting system
3.ALGORITHM FOR CLASS DIAGRAM:
Step 1: Create class diagram for each identified objects under sequence diagram.
Identified objects are: login,voter details,type of login,login,count,etc,.
Step 2: Class diagram for each object is divided into three parts.
Top Portion represents the Class Name.
Middle Portion represents the Attributes.
Bottom Portion represents the Methods.
The Class diagram for online voting system is shown in Fig (3).
-
7/29/2019 OOSD Lab ManualMEC
16/24
Fig (3). Class diagram for online voting system
Login
Name
Password
User
Admin
Cancel
Type_of_login
User
Admin
Select_Details
Voter_Details
Vote
Count
Exit
Count
Vote_count
Back
Vote
DMK
ADMK
PMK
BJP
Voter_details
Voter_id
Name
Address
DOB Gender
Age
Insert
Search
Update
Delete
Back
-
7/29/2019 OOSD Lab ManualMEC
17/24
Procedure to write the software for online voting system using Rational Software
tool
Selecting the software:
11.Click start Rational Software Rational Administrator.
Create the project:
12.Click SelectFileNew ProjectGive name to thefileBrowseNextPassword Name and Conformation PasswordNext.
Selecting the database:
13.CreateMS-AccessFinish.
Open the Rational Rose Tools:
14.Click toolsRational Rose.
To draw the diagram:15.Click Untitled (Give name to the file)Right clickUse casediagramSequence diagramClass diagram.
16.Click Use case diagramThe symbols Are displayed then we can build the usecase diagram.
17.Click Sequence diagram The symbols Are displayed then we can build thesequence diagram.
18. Click Class diagram The symbols Are displayed then we can build the classsdiagram.
Generate the coding form:19.Click ComponentRight ClickSave the FileRight ClickOpen
specificationSelect the languageVBRealizeChoose Component.
20.Click Component ViewConnectPasswordIf the password is matched thenthe code will be generated automatically for the function which is already
mentioned in the class diagram.
PROGRAM:
-
7/29/2019 OOSD Lab ManualMEC
18/24
SAMPLE OUTPUT:
S.NO SITE
VISITOR
WEB SITE SERVER RESULT
RESULT:
Thus the Online Voting System was developed using rational software.
4. BANKING SYSTEM
-
7/29/2019 OOSD Lab ManualMEC
19/24
AIM:
To implement the Banking System using Rational Software.
1. ALGORITHM FOR USECASE DIAGRAM:Step 1: Identify the Actors and Use cases.In this system, the actors and use case are:
Actors : User, System and Database.
Use cases : Login, Deposit, Withdrawal, Updation, Balance enquiry.
Step 2: Build the relationship between actors and use cases.
The use case diagram for Banking System is given in Fig(1).
User
Deposit
Withdrawal
System
Updation
Balance enquiry
Database
Login
Fig (1). Use case diagram for Banking System
2. ALGORITHM FOR SEQUENCE DIAGRAM:Step 1: Identify the objects.
In this system, the objects are: User, Systems and Database.
-
7/29/2019 OOSD Lab ManualMEC
20/24
Step 2: Identify the sequence of events.
Step 3: Login to the system to check the validity.
Step 4: Select the option in the system.
Step 5: For the user to deposit or withdraw the amount, they should enter the
option in the system.
Step 6: The system will do the corresponding processing with proper updation inthe database.
Step 7: Finally the balance is displayed to the user.
The sequence diagram for the Banking System is shown in Fig (2).
-
7/29/2019 OOSD Lab ManualMEC
21/24
User System Database
1: Login request 2: Vlaidate
3: Self check4: Permit5: Accepted
6: Show details for option
7: Deposit request
8: Processed9: Updation
10: Withdraw request
11: Processed 12: Updation
13: Balance request14: Query request
15: responding16: Display details
Fig (2). Sequence diagram for Banking System
-
7/29/2019 OOSD Lab ManualMEC
22/24
3. ALGORITHM FOR CLASS DIAGRAM:Step 1: Create class diagram for each identified objects under sequence diagram.
Identified objects are: User, System and Database.
Step 2: Class diagram for each object is divided into three parts.
Top Portion represents the Class Name.Middle Portion represents the Attributes.
Bottom Portion represents the Methods.
The Class diagram for the Banking System is shown in Fig (3).
Fig (3). Class diagram for Banking System
Procedure to write the software for the Banking System using Rational Software
tool
Selecting the software:
1. Click start Rational Software Rational Administrator.
Create the project:2. Click SelectFileNew ProjectGive name to the
fileBrowseNextPassword Name and Conformation PasswordNext.
Selecting the database:
3. CreateMS-AccessFinish.
-
7/29/2019 OOSD Lab ManualMEC
23/24
Open the Rational Rose Tools:4. Click toolsRational Rose.
To draw the diagram:
5. Click Untitled (Give name to the file)
Right click
Use casediagramSequence diagramClass diagram.
6. Click Use case diagramThe symbols Are displayed then we can build the usecase diagram.
7. Click Sequence diagram The symbols Are displayed then we can build thesequence diagram.
8. Click Class diagram The symbols Are displayed then we can build the classsdiagram.
Generate the coding form:9. Click ComponentRight ClickSave the FileRight ClickOpen
specificationSelect the languageVBRealizeChoose Component.
10.Click Component ViewConnectPasswordIf the password is matched thenthe code will be generated automatically for the function which is already
mentioned in the class diagram.
-
7/29/2019 OOSD Lab ManualMEC
24/24
PROGRAM:
SAMPLE OUTPUT:
S.NO USER NAME ACCOUNT
NO
OPTION
(Deposit/Withdraw)
BALANCE
RESULT:Thus the Banking System was developed using rational software.
top related