166
S.K.P Institute of Technology Tiruvannamalai – 606611. DEPT : CSE CS2357- OBJECT ORIENTED ANALYSIS AND DESIGN LAB MANUAL (III Year CSE) PREPARED BY N.GOPINATH AP/CSE 1

Final OOAD Lab Manual for 3rd Year CSE by Gopi

Embed Size (px)

Citation preview

Page 1: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

CS2357- OBJECT ORIENTED ANALYSIS AND DESIGN LAB MANUAL

(III Year CSE)

PREPARED BY

N.GOPINATHAP/CSE

1

Page 2: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

NAME :

REG.NO :

DEPT :

SEM :

SUB CODE/NAME :

2

Page 3: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

TABLE OF CONTENTS

S.NO DATE NAME OF THE EXPERIMENT MARKS SIGN

INTRODUCTION TO RATIONAL ROSE SOFTWARE

1 ATM SYSTEM

2 ONLINE RESERVATION SYSTEM

3 ONLINE QUIZ SYSTEM

4 STOCK MAINTENANCE SYSTEM

5 STUDENT MARK ANALYSIS SYSTEM

6 COURSE REGISTRATION SYSTEM

7 PAYROLL SYSTEM

8 EXPERT SYSTEM

9 LIBRARY MANAGEMENT SYSTEM

10 REAL TIME SCHEDULER

11 REMOTE PROCEDURE CALL

12 ONLINE PURCHASE SYSTEM

3

Page 4: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

BATCH SPLITUPS :

Batch - I Batch - II

Roll.NO REG NO Roll.NO REG NO

1 52909104001 21 52909104021

2 52909104002 22 52909104022

3 52909104003 23 52909104023

4 52909104004 24 52909104024

5 52909104005 25 52909104025

6 52909104006 26 52909104026

7 52909104007 27 52909104027

8 52909104008 28 52909104028

9 52909104009 29 52909104029

10 52909104010 30 52909104030

11 52909104011 31 52909104031

12 52909104012 32 52909104032

13 52909104013 33 52909104033

14 52909104014 34 52909104034

15 52909104015 35 52909104035

16 52909104016 36 52909104036

17 52909104017 37 52909104037

18 52909104018 38 52909104301

19 5290910401939 52909104302

20 52909104020

4

Page 5: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Lab Plan for Tuesday Batch

DATES Roll.NO EXERCISE FOR BATCHES

20.12.2011 1to20 INTRODUCTION TO RATIONAL ROSE SOFTWARE

20.12.2011 1to20 ATM SYSTEM

27.12.2011 1to20 ONLINE RESERVATION SYSTEM

03.01.2012 1to20 ONLINE QUIZ SYSTEM

10.01.2012 1to20 STOCK MAINTENANCE SYSTEM

24.01.2012 1to20 STUDENT MARK ANALYSIS SYSTEM

31.01.2012 1to20 COURSE REGISTRATION SYSTEM

07.02.2012 1to20 PAYROLL SYSTEM

14.02.2012 1to20 EXPERT SYSTEM

14.02.2012 1to20 LIBRARY MANAGEMENT SYSTEM

21.02.2012 1to20 REAL TIME SCHEDULER

21.02.2012 1to20 REMOTE PROCEDURE CALL

28.02.2012 1to20 ONLINE PURCHASE SYSTEM

5

Page 6: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Lab Plan for Friday Batch

DATES Roll.NO EXERCISE FOR BATCHES

23.12.2011 21to39 INTRODUCTION TO RATIONAL ROSE SOFTWARE

23.12.2011 21to39 ATM SYSTEM

30.12.2011 21to39 ONLINE RESERVATION SYSTEM

06.01.2012 21to39 ONLINE QUIZ SYSTEM

20.01.2012 21to39 STOCK MAINTENANCE SYSTEM

27.01.2012 21to39 STUDENT MARK ANALYSIS SYSTEM

03.02.2012 21to39 COURSE REGISTRATION SYSTEM

10.02.2012 21to39 PAYROLL SYSTEM

10.02.2012 21to39 EXPERT SYSTEM

17.02.2012 21to39 LIBRARY MANAGEMENT SYSTEM

24.02.2012 21to39 REAL TIME SCHEDULER

02.03.2012 21to39 REMOTE PROCEDURE CALL

09.03.2012 21to39 ONLINE PURCHASE SYSTEM

6

Page 7: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RATIONAL ROSERATIONAL ROSE

RATIONAL ROSE SOFTWARE

ANALYSIS AND DESIGN

The application’s method recommends the use of static and dynamic views of a logical model and a physical model to capture the in-process products of object-oriented analysis and design. Using the notation, the application enables you to create and refine these views within an overall model representing your problem domain and software system.

This overall model contains classes, use cases, objects, packages, operations, component packages, components, processors, devices and the relationships between them. Each of these model elements possesses model properties that identify and characterize them. The notation provides graphical icons to represent each kind of model element and relationship.

A model also contains diagrams and specifications, which provide a means of visualizing and manipulating the model’s elements and their model properties. Since diagrams are used to illustrate multiple views of a model, icons representing a model element can appear in none, one, or several of a model’s diagrams. The application therefore enables you to control, which element, relationship, and property icons appear on each diagram, using facilities provided by its application window. Within its application window, it displays each diagram in a diagram window, and each specification in a specification window.

USE CASE VIEW

Contains the use case models, flow of events and supplementary documentation.

It is a contract between customer and developer.

It is essential for analysis, design and test activities.

It also contains activity diagrams.

It contains the use case diagrams.

It is the heart of the other views that represent the required behaviour of the system.

LOGICAL VIEW

It supports the functional requirements of the system.

It includes the use case realization, class diagram, interaction diagram, state chart and activity diagram.

PROCESS VIEW

It addresses the performance, scalability and throughput of the system.

It includes the threads and the processes that found the system concurrency and synchronization mechanism.

It is not necessary for single processing environment.

7

Page 8: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COMPONENT VIEW

The component view addresses the ease of development management of software assets, reuse, subcontracting and of the shelf components.

Describes the organization of static software, like source call data files components in terms of packaging, layering and configuration management.

DEPLOYMENT VIEW

It addresses the issue like deployment installation and performance.

The deployment view is used for distributed systems only.

It shows the various executables like a runtime components and computing modes.

It contains deployment diagrams.

8

Page 9: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

9

Page 10: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

10

Page 11: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EX NO:DATE:

ATM SYSTEM

AIM:

To analyze, design and develop code for Automated Teller Machine system using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

Processor: x86-based processor.

Hard disk: 20 GB (min)

RAM: 128 MB (min)

SOFTWARE REQUIREMENTS

Rational Rose Enterprise edition

Visual Basic 6.0

11

Page 12: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

12

Page 13: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULAR DESCRIPTION

VERIFICATION OF ATM CARD

For the verification of ATM card by the system, the user will enter the secret code. The pin number or code number is verified with the database of the customers. If the code exactly is matched with database of that of the customers then transaction can be performed. If the code does not match with the database of the customer then the user is requested again to re-enter the pin number of the access card and is continued further.

TRANSACTION

In this module, the necessary transaction to be performed by the user is displayed as option by the system. The transaction options are withdrawal, deposit, balance enquiry, mini statement, pin change. The users can withdraw the amount from their account if the amount is available in their account. The users can also deposit the amount in their account either by cash or cheque. This module helps the users to check their balance in their account through balance enquiry and also they can get the mini statement for recent transaction done over their account. This module allows the users to change their pin number if they need.

DISPLAY AND RECEIPT

In this module, after the user performs the transaction process the system displays the balance amount available in the account and the amount withdrawn by the user through receipt. The receipt will be provided at the end of the transaction process.

13

Page 14: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

14

Page 15: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM:

CLASS DIAGRAM

.

15

Page 16: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM

16

Page 17: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COLLABORATION DIAGRAM

17

Page 18: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ACTIVITY DIAGRAM

COMPONENT DIAGRAM:

18

Page 19: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:This project was carried out in a sequential manner to design and implement the “ATM SYSTEM”. Thus the outcome of the project is efficient. The ATM system caters the varied requirements of the user to perform various options.

19

Page 20: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

20

Page 21: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

21

Page 22: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EX NO:DATE:

ONLINE RESERVATION SYSTEM

AIM:

To analyze, design and develop code for online reservation system using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

Rational Rose Software

22

Page 23: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

23

Page 24: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULAR DESCRIPTION

RESERVATION MODULE:

This module allows the user to reserve tickets for a particular train on a particular date if there is a vacancy. The user can know about the vacancy details of the train through the enquiry module.

CANCELLATION MODULE:

This module allows the user to cancel the tickets to a train for a particular date through the reservation officer (System). This module permits the user to know the status of the reserved ticket before and after cancellation.

All these modules together prove to be a flexible Online Reservation System and it provides complete flexibility and reliability to the end users and it assures the desired performance.

24

Page 25: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

25

Page 26: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM

.

CLASS DIAGRAM

26

Page 27: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM(Ticket reservation)

27

Page 28: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM(Ticket cancellation)

.

28

Page 29: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COLLABORATION DIAGRAM(Ticket Reservation)

COLLABORATION DIAGRAM(Ticket Cancellation)

29

Page 30: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ACTIVITY DIAGRAM

COMPONENT DIAGRAM

30

Page 31: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:

This project was carried out in a sequential manner to design and implement the “ONLINE RESERVATION SYSTEM”. Thus the outcome of the project is efficient. The ONLINE RESERVATION SYSTEM caters the varied requirements of the user to perform various options.

31

Page 32: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

32

Page 33: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

33

Page 34: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EX NO:

DATE:

ONLINE QUIZ SYSTEM

AIM:

To analyze, design and develop code for online quiz system using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

34

Page 35: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

35

Page 36: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULAR DESCRIPTION

REGISTRATION MODULE:

This module enables the end users to register themselves to the online quiz competition through two-way communication between the coordinator and the participant. This is the most important module as it maintains the details of the participants in the database and it is the preliminary stage of the online quiz system.

DISPLAY MODULE:

This module provides the user with the fields i.e. the questions for which they have to answer and it displays the answers of those questions when required by the coordinator.

EVALUATION MODULE:

This module evaluates the answers that are given by the users i.e. the participants with that of the corresponding answers in the database. Either they are correct or wrong, in both the cases the scores of the corresponding participant or team will be updated accordingly.

ANNOUNCEMENT MODULE:

This module is used to display the results of the quiz competition irrespective of the status of the result and it also displays the scores acquired by each participant or team at the end of the quiz competition.

All these modules together prove to be a flexible Online Quiz System and it provides complete flexibility and reliability to the end users and it assures of the desired performance.

36

Page 37: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

37

Page 38: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM

CLASS DIAGRAM

38

Page 39: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM(Log in)

SEQUENCE DIAGRAM(Quiz)

39

Page 40: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COLLABORATION DIAGRAM(login)

COLLABORATION DIAGRAM(Quiz)

40

Page 41: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ACTIVITY DIAGRAM

41

Page 42: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COMPONENT DIAGRAM

42

Page 43: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:This project was carried out in a sequential manner to design and implement the “ONLINE QUIZ SYSTEM”. Thus the outcome of the project is efficient. The ONLINE QUIZ SYSTEM caters the varied requirements of the user to perform various options.

43

Page 44: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

44

Page 45: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EX NO: DATE:

STOCK MAINTENANCE SYSTEM

45

Page 46: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

AIM:

To analyze, design and develop code for Stock Maintenance System using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

Rational Rose Software

¨Visual C++ 6.0

46

Page 47: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULAR DESCRIPTION

ORDER MODULE:

47

Page 48: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

This module is necessary to get the request from the customer for any product and also this module communicates with the stock module to determine the availability of stock.

STOCK MODULE:This module is the one, which is necessary to add information about all the items that are to be stocked. This module provides the stock availability and also data required for new orders.

48

Page 49: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM:

49

Page 50: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

CLASS DIAGRAM:

50

Page 51: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM

COLLABORATIOIN DIAGRAM:(Login)

ACTIVITY DIAGRAM:

51

Page 52: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COMPONENT DIAGRAM:

52

Page 53: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:This project was carried out in a sequential manner to design and implement the “STOCK MAINTENANCE SYSTEM”. Thus the outcome of the project is efficient. The STOCK MAINTENANCE SYSTEM caters the varied requirements of the user to perform various options.

53

Page 54: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

54

Page 55: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EX NO:

55

Page 56: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

DATE:

STUDENT MARK ANALYSIS SYSTEM

AIM:

To analyze, design and develop code for Student Mark Analysis system using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

¨Visual Basic 6.0

56

Page 57: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

57

Page 58: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULAR DESCRIPTION

RECORD MARKS MODULE:

This module enables the authenticated users to record the marks and thereby their respective grades in a database. This is the most important module as it maintains the details of the marks scored by the students in the database and it is the first and the foremost step in this system.

VIEW GRADES MODULE:

This module permits the respective users to view their grades as and when necessary after their identification through their login name and password. This module proves to be the simplest as it does not allow the user to modify or update any information except viewing them.

UPDATE MARKS MODULE:This module enables the authenticated users to update the marks of the students after each and every test in order to update the data to the present existing grades of the students. This module just allows the user to modify or update the grades of the students alone but not their personal details. This module does not allow any user just like that only authenticated users are allowed to update the necessary data after their identification through their login name and password.

58

Page 59: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM:

59

Page 60: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

CLASS DIAGRAM:

60

Page 61: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM:

COLLABORATION DIAGRAM:

ACTIVITY DIAGRAM:

61

Page 62: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COMPONENT DIAGRAM:

62

Page 63: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:This project was carried out in a sequential manner to design and implement the “STUDENT MARK ANALYSIS SYSTEM”. Thus the outcome of the project is efficient. The STUDENT MARK ANALYSIS SYSTEM caters the varied requirements of the user to perform various options.

63

Page 64: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

64

Page 65: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EX N O:

65

Page 66: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

DATE:

COURSE REGISTRATION SYSTEM

AIM:

To analyze, design and develop code for Course registration System using Rational Rose software.

.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

¨Visual C++ 6.0

66

Page 67: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

67

Page 68: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULAR DESCRIPTION

REGISTRATION MODULE:

This module enables a student to select a course from a given set of courses. It is this module that acts as an interface between the student and the registrar.

MAINTENANCE MODULE:This module is necessary to store all the information about the student to the database. This module also has the provision to retrieve the data from the database system.

68

Page 69: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM:

69

Page 70: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

.

CLASS DIAGRAM:

SEQUENCE DIAGRAM:

70

Page 71: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COLLABORATION DIAGRAM:

ACTIVITY DIAGRAM:

71

Page 72: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COMPONENT DIAGRAM

72

Page 73: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:

This project was carried out in a sequential manner to design and implement the “COURSE REGISTRATION SYSTEM”. Thus the outcome of the project is efficient. The COURSE REGISTRATION SYSTEM caters the varied requirements of the user to perform various options.

73

Page 74: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

74

Page 75: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EX NO:

75

Page 76: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

DATE:

PAY ROLL SYSTEM

AIM:

To analyze, design and develop code for Payroll System using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

76

Page 77: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

77

Page 78: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULAR DESCRIPTION

ADD MODULE:

This module enables the manager to add new employees. This module is the most important one as this is the basic prerequisite for a payroll system.

VIEW MODULE:

This module permits the manager to view the details of all the employees and their salaries. This module also allows an employee to view his/her salary information.

EDIT MODULE:

This module enables the manager to edit the salary details of any employee. This module also has the ability

to enable the manager to remove an employee from the firm.

78

Page 79: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM:

79

Page 80: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

CLASS DIAGRAM:

SEQUENCE DIAGRAM:

80

Page 81: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

(General view)

SEQUENCE DIAGRAM:

(Specified view)

COLLABORATION DIAGRAM:

81

Page 82: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

(General view)

COLLABORATION DIAGRAM:

(Specified view)

ACTIVITY DIAGRAM:

82

Page 83: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

.

COMPONENT DIAGRAM:

83

Page 84: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:This project was carried out in a sequential manner to design and implement the “PAYROLL SYSTEM”. Thus the outcome of the project is efficient. The PAYROLL SYSTEM caters the varied requirements of the user to perform various options.

84

Page 85: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EXPERT SYSTEM

85

Page 86: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

86

Page 87: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Ex.No:

DATE:

EXPERT SYSTEM

AIM:

To analyze, design and develop code for Expert System using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

87

Page 88: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

88

Page 89: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULE DESCRIPTION

MODULE 1:

The user logs into the system with the user login id and password. The connection is made with the EQ database where a random set of 10 questions along with

their choices are selected. The questions are selected in such a way that the same set is not repeated for the same login

id.

MODULE 2:

Here, ten questions are displayed. As the user chooses an option it is stored in EQ marks format for evaluation.

MODULE 3:

The marks that are stored in EQ marks are transferred to EQ system. EQ system calculates the sum and displays it as Emotional Quotient.

MODULE 4:

The EQ value is connected to the EQ database in which the characteristic matching the EQ value is displayed.

MODULE 5:

Again, the EQ value is compared with the database for displaying the users’ drawbacks and ways of improvement.

MODULE 6:

If the user is interested then provide an interface for entering personal details with EQ for future reference.

The details are stored in the EQ database and can be accessed only through entering the correct password.

89

Page 90: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

90

Page 91: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USECASE DIAGRAM

Creation

Log-in

Answer questions

Wait for inference

View marks

Personal Details

Maintenance

UserAdministrator

CLASS DIAGRAM

91

Page 92: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

EQ Questions

selectqueschoices

EQ Marks

selectedchoices

valuatechoices()

EQ System

choicevalue

sum1()

transfers

calculates

SEQUENCE DIAGRAM

User Interface EQ DatabaseEQ System

login verify username and password

pose question

select answer

update marks on database

calculate result

give EQ result

display EQ

COLLABORATION DIAGRAM

92

Page 93: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

User Interface

EQ Database

EQ System

1: login

2: verify username and password

3: pose question4: select answer

5: update marks on database6: calculate result

7: give EQ result8: display EQ

ACTIVITY DIAGRAM

93

Page 94: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Start the application

Enter the username and password

Verify username and password

Enter into system

Enter personal details

Save your current EQ

View past records

Read the question

Select the answers

Submit answers

View the result

Save settings

Log out

COMPONENT DIAGRAM

94

Page 95: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Server

DBMS Server

User Expert UI Printer

DEPLOYMENT DIAGRAM

Server DBMS Server

Printer

UI

Get details

Get question

Print result

95

Page 96: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:

This project was carried out in a sequential manner to design and implement the “EXPERT SYSTEM”. Thus the outcome of the project is efficient. The EXPERT SYSTEM caters the varied requirements of the user to perform various options.

96

Page 97: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

LIBRARY MANAGEMENT SYSTEM

97

Page 98: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

98

Page 99: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Ex.No:

DATE:

LIBRARY MANAGEMENGT SYSTEM

AIM:

To analyze, design and develop code for Library Management System using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

99

Page 100: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

100

Page 101: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULE DESCRIPTION

MODULE 1 Provide a user interface for getting the user’s login details.

Verify login ID and if correct, provide access to the library database.

MODULE 2 Provide a search mechanism to search for a particular book.

Input the book name and the author’s name.

MODULE 3 Get the book details from the database.

Display the book details on the screen.

MODULE 4 Allow the user to select the book for checking out.

Issue the book.

101

Page 102: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

102

Page 103: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM

Search book name

Select book name

Enter student login details

Issue the book

Student Librarian

CLASS DIAGRAM

103

Data Entry

NameId no.Book nameAuthorDOIDORCard no

Issue()Return ()

Software Entry

Issue Querying

DOI.

Renewal()Issue()

Querying

ReturnQuerying

Return()

Page 104: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM

104

Student library AdministratorLibrarian

Enter Login Details

Verify Authentication

Grant Permission/ Deny

Enter Login Details

Verify Authentication

Grant Permission/Deny

Enter Book name

Search the book

Enter author name

Check the book

Display results

Page 105: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COLLABORATION DIAGRAM

105

SystemAdministrator

Student

Librarian

1: Enter Login Details

2: Verify Authentication

3: Grant Permission/ Deny4: Enter Login Details

5: Verify Authentication

6: Grant Permission/Deny

7: Enter Book name

8: Search the book

9: Enter author name11: Issue the book

Page 106: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ACTIVITY DIAGRAM

Enter login name

Verify

Grant permission

Enter book name

Enter author name

Display the book

Check out the book

106

Page 107: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COMPONENT DIAGRAM

DEPLOYMENT DIAGRAM

Client Processor

Web Server

107

Page 108: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:

This project was carried out in a sequential manner to design and implement the “LIBRARY MANAGEMENT SYSTEM”. Thus the outcome of the project is efficient. The LIBRARY MANAGEMENT SYSTEM caters the varied requirements of the user to perform various options.

108

Page 109: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

REAL TIME SCHEDULER

109

Page 110: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

110

Page 111: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Ex.No:DATE:

REAL TIME SCHEDULER

AIM:

To analyze, design and develop code for Real Time Scheduler using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

111

Page 112: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

112

Page 113: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULE DESCRIPTION

MODULE 1-GET USER DETAILS

Get the name, ID and Phone number of the user. Get the password from the user. Give options to either view the schedule of the user or to add a new schedule.

MODULE 2-VIEW SCHEDULE

In the view schedule window, display o Appointment nameo Appointment timeo Appointment location

MODULE 3-ADD SCHEDULE

To add a schedule, the user must enter the name, time and location of the appointment. The user should be alerted if the schedule is made after 5 PM. If the user is busy at the selected time, he can reschedule. The user can also delete an appointment using the delete option.

MODULE 4-RESCHEDULE

To reschedule, the user must first check whether he is free at the specified time or not. If yes, he can proceed with the rescheduling process. Otherwise, he must again check for an alternate time.

MODULE 5

The user must finally be informed that his schedule has been successfully created.

113

Page 114: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

114

Page 115: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM

View Schedule

Add Schedule

Delete Schedule

Reschedule

System

Check Availability

Person_Details

CLASS DIAGRAM

makes needs

Availability

New_timeNew_location

CheckAvailability()

Schedule

ActivityTimeLocation

DeleteSchedule()Reschedule()

Person

Person_NamePerson_IDPhone_NoPassword

ViewSchedule()EditSchedule()

115

Page 116: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

SEQUENCE DIAGRAM

Person Appointment Control

Appointment

View schedule

Check availability

Reschedule

Confirm appointment

Add appointment

If yes, create appointment

No

116

Page 117: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

COLLABORATION DIAGRAM

Person Appointment Control

Appointment

1: View schedule

3: Check availability6: Reschedule

7: Confirm appointment

2: Add appointment

4: If yes, create appointment

5: No

ACTIVITY DIAGRAM

117

Page 118: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Enter details

View Schedule Add appointment

Available?

Reschedule appointment

no

Confirm schedule

Yes

COMPONENT DIAGRAM

118

Page 119: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

DEPLOYMENT DIAGRAM

Client Processor

Web Server

119

Page 120: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:

This project was carried out in a sequential manner to design and implement the “REAL TIME SCHEDULER”. Thus the outcome of the project is efficient. The REAL TIME SCHEDULER caters the varied requirements of the user to perform various options.

120

Page 121: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

REMOTE PROCEDURE CALL

121

Page 122: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

122

Page 123: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Ex.No:DATE:

REMOTE PROCEDURE CALL

AIM:

To analyze, design and develop code for Remote Procedure Call using Rational Rose software.

INFRASTRUCTURE:

HARDWARE REQUIREMENTS

¨X86 based processor

¨RAM (128 MB min)

¨Hard Disc (40 GB)

SOFTWARE REQUIREMENTS

¨Rational Rose Software

123

Page 124: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

124

Page 125: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

MODULE DESCRIPTIONMODULE 1

Create an account for each customer. Customer has to log in using user name and password.

MODULE 2

Prepare the order. Provide each customer with the shopping cart containing all the items that the customer wants to buy. Give them access to all the details about different types of computers that is available in the store.

MODULE 3

Provide order form and let the customer to fill out payment and shipping details. Store the order in database. Review the order and check whether the items are available. Email the order details to the customers email id.

MODULE 4

Send information to the warehouse to start shipping process. Print the invoice. Accept customer payment.

125

Page 126: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

USE CASE DIAGRAM

126

Page 127: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

warehouse

Inform warehouse about order

Display standard computer config

Build computer config

Order configured computer

Request salesperson contact

customer

Update order status

Print invoice

Salesperson

Verify and accept customer payment

CLASS DIAGRAM

127

Page 128: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Configuration

item typeitem descp

Customer

nameaddressph noemail

get order()

Payment

payment methoddate receivedamt received

Invoice

numberdatetotal

Order

od numdateaddresstotalstatussales pname

SEQUENCE DIAGRAM

Customer Config window Order Order window Payment

Open new

Accept config Prepare for orderDisplay order

Submit order

Store order

Link customer

Link payment

COLLABORATION DIAGRAM

128

Page 129: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Config window

Order Order window

Customer Payment

3: Prepare for order 4: Display order

6: Store order

8: Link payment

1: Open new2: Accept config

5: Submit order

7: Link customer

ACTIVITYDIAGRAM

Display current config

Get order request

Dispaly purchase form

Get purchase details Store order

Email order details

[OK]

[incomplete]

[time out]

COMPONENT DIAGRAM

129

Page 130: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Online shopping

Customer

Order

DEPLOYMENT DIAGRAM

Client Processor

Web Server

130

Page 131: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:

This project was carried out in a sequential manner to design and implement the “REMOTE PROCEDURE CALL”. Thus the outcome of the project is efficient. The REMOTE PROCEDURE CALL caters the varied requirements of the user to perform various options.

131

Page 132: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

Content Beyond Syllabus

ONLINE PURCHASE SYSTEM

1. ANALYSIS

1.1 Identifying the Actors

1.2 Identifying the Use Cases

2. REQUIREMENTS

2.1 System Requirements

2.2 Software Requirements

3. DESIGN

3.1 Use Case Diagram

3.2 Class Diagram

3.3 Sequence Diagram

3.4 Collaboration Diagram

3.5 Activity Diagram

3.6 State Diagram

132

Page 133: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ONLINE PURCHASE USE CASE DIAGRAM

OnlinePurchase

Customer

Software

Banking

Dealer

Check forvalidity

Deliever Goods

IssueAuthorization

Issue Details

Ask for Payment &Shipping details

Select Item

Browse Catlog

Request Item

133

Page 134: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ONLINE PURCHASE CLASS DIAGRAM

ShoppingCardAttributes

public float subtotalpublic float salesmoneypublic float totalmoney

Operations

public ShoppingCard()public float getSubtotal()public void setSubtotal(float val )public float getSalesmoney()public void setSalesmoney(float val )public float getTotalmoney()public void setTotalmoney(float val )public void placeOrder()public void removeOrder()public Customervoid[0..*] getCustomer()public void setCustomer(Customer val[0..*] )public CreditCardvoid[0..*] getCreditCard()public void setCreditCard(CrdeitCard val[0..*] )public Customer[0..*] getCustomer()public void setCustomer(Customer val[0..*] )public CreditCard[0..*] getCreditCard()public void setCreditCard(CreditCard val[0..*] )

CustomerAttributes

private string addrtoshipprivate string nameprivate string addrtobillprivate string emailaddprivate int creditrating

Operations

public Customer()public string getAddrtoship()public void setAddrtoship(string val )public string getName()public void setName(string val )public string getAddrtobill()public void setAddrtobill(string val )public string getEmailadd()public void setEmailadd(string val )public int getCreditrating()public void setCreditrating(int val )public void displayCategory()public void selectItem()public void delieverItem()public void removeOrder()

ItemOfPurchaseAttributes

private int quantityprivate float priceperitem

Operations

public ItemOfPurchase()public int getQuantity()public void setQuantity(int val )public float getPriceperitem()public void setPriceperitem(float val )public Customer fetCustomer()public void setCustomer(Customer val )public Product[0..*] getProduct()public void setProduct(Product val[0..*] )public Product[0..*] getProduct()public void setProduct(Product val[0..*] )

CreditCardOperations

public CreditCard()public int getNumber()public void setNumber(int val )public date getExpirydate()public void setExpirydate(date val )public boolean getIssue()public void setIssue(boolean val )public void authorizeCharge()public Preffered()public ItemOfPurchase getItemOfPurchase()public void setItemOfPurchase(ItemOfPurchase val )public PrefferedCustomer[0..*] getPrefferredCustomer()public void setPrefferredCustomer(PrefferedCustomer val[0..*] )public PrefferedCustomer[0..*] getPrefferedCustomer()public void setPrefferedCustomer(PrefferedCustomer val[0..*] )

PrefferedCustomerAttributes

private int discountrate

Operations

public PrefferedCustomer()public int getDiscountrate()public void setDiscountrate(int val )public Customer getCustomer()public void setCustomer(Customer val )public Customer getCustomer1()public void setCusotmer1(Customer val )public Customer getCustomer()public void setCustomer(Customer val )

ProductAttributes

Operations

public Product()

1

*

mProduct

1

mCustomer

1*

mCreditCard 1

1

mCustomer

mPrefferedCustomer

* 1

ONLINE PURCHASE SEQUENCE DIAGRAM

134

Page 135: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

: Customer

: Shoppingcart : creditcard

public void brow secatalog()

public void displaycatalog()

public void selectItem()

public void getCreditRating()public void getAddrToShop()

public void setCreditCard()

public void shipmentDetails()

public void authorizedCharge()

public void authorize()

public void getExpiryDate()

validation

public void setCrediting(int val )

public void setAddrToShip()

public void deleverItem()

public void rejected()

public void removeOrder()

135

Page 136: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ONLINE PURCHASE COLLABORATION DIAGRAM

: Customer

: Shoppingcart

: creditcard

public void brow secatalog()

public void displaycatalog()public void selectItem()

public void getCreditRating()

public void getAddrToShop()

public void setCreditCard()

public void shipmentDetails()

public void setCrediting(int val )

public void setAddrToShip()

public void deleverItem()

public void removeOrder()

public void authorizedCharge()

public void authorize()

public void rejected()

public void getExpiryDate()

136

Page 137: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ONLINE PURCHASE ACTIVITY DIAGRAM

OnlinePurchase

Customer Shoppingcart Creditcard

BrowseCatlog

{ From OP_Activity }

SelectingCatlog

{ From OP_Activ...

Selecting &

{ From OP_Activit...

Issuingpayment

{ From OP_Activity }

DelieveringItem

{ From OP_Activity }

DisplayingCatlog

{ From OP_Activity }

Displaying ....

{ From OP_Activity }

Requesting

{ From OP_Activity }

Acceptingdelivery

{ From OP_Activity }

Authorized

{ From OP_Activity }

Rejected

{ From OP_Activity }

Validatingcredit

{ From OP_Activity }

Unnamed

Unnamed

Unnamed

137

Page 138: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

ONLINE PURCHASE STATECHART DIAGRAM

CHECKING

PROCESS

DELIVERY

DISPATCH

WAITING

CANCELLING

EXIT

138

Page 139: Final OOAD Lab Manual for 3rd Year CSE by Gopi

S.K.P Institute of TechnologyTiruvannamalai – 606611.

DEPT : CSE

RESULT:-

This project was carried out in a sequential manner to design and implement the “ONLINE PURCHASE SYSTEM”. Thus the outcome of the project is efficient. The ONLINE PURCHASE SYSTEM caters the varied requirements of the user to perform various options.

139