0% found this document useful (0 votes)
59 views85 pages

Case Tools - Record

The document describes designing a student mark analysis system using UML diagrams and generating VB code. It includes algorithms, coding, class, use case, sequence and collaboration diagrams for the system.

Uploaded by

sakthivel4236
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views85 pages

Case Tools - Record

The document describes designing a student mark analysis system using UML diagrams and generating VB code. It includes algorithms, coding, class, use case, sequence and collaboration diagrams for the system.

Uploaded by

sakthivel4236
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 85

EX.NO.

:1

DATE: 11.12.17 ATM TRANSFER SYSTEM

AIM:
To design a student mark analysis using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3: Select the Use case Diagram and Draw it.

Step4: Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6:Generating the coding ATM transfer system using Visual Basic.

Step7: Stop the process.

1
CODING:

Option explicit

'##ModelId=530711F601C5

Private acno As Variant

'##ModelId=530711FD003E

Private name As Variant

'##ModelId=52F711FF00CB

Private branch As Variant

'##ModelId=52F7120701C5

Public Sub checking_for_account ()

End Sub

Option explicit

'##ModelId=530712910157

Private acno As variant

'##ModelId=530712FD0242

Private amt As Variant

'##ModelId=5307129FD242

Public NewProperty As bank

'##ModelId=53071294029F

Public sub withdraw ()

End sub

'##ModelId=530712AA01F4

Private sub min_balance_checking()

End sub

2
Option explicit

'##ModelId=5307126602AF

Private acno As variant

'##ModelId=53071290222

Private name As variant

'##ModelId=530712B0119

Private amt As variant

'##ModelId=530712690169

Public NewProperty As bank

'##ModelId=53071280109

Public suc deposit ()

End Sub

Option explicit

'##ModelId=530712CD02EE

Private acno As variant

'##ModelId=530712CD20290

Private name As variant

'##ModelId=530712D40213

Private balance As variant

'##ModelId=530713020FD

Public NewProperty As bank

'##ModelId=530712DA006D

Public sub display _details ()

End Sub

3
CLASS DIAGRAM:

Bank
acno
name
branch
checking for a/c()

create new a/c


withdraw acno
deposit acno name
acno amt balance
name
amt withdwr() display details()
min balance checking()
deposit()

4
USECASE DIAGRAM:

Creating new a/c with min balance Bank Manager

a/c details

Client Withdraw the amount from A/C and


check for min balance

Monitoring Manager
Withdraw details Server side

Deposit the amount

Deposit details

5
COLLABORATION DIAGRAM:

Create new
a/c

1: enter the client details with min balance


2: A/C Creation Response
3: Check for Authentication Authentication
Client checking
9: if not an authentication person means transaction
8: transaction details 10: Allow to deposit the amount
Deposit
4: if Authenticaticated

7: if amt is less then min balances the transaction

Withdraw Min balance


checking
5: transaction made

6:transactionn details

6
ACTIVITY DIAGRAM:

Client

Creating Withdraw
a/c
Deposit

Bank
Manager Check for auth
Check for a/c
Authentication
Check for
Minbalance Deposit transaction and
Display the details to client
Withdraw
Display a/c Transaction and
Details to client

7
SEQUENCE DIAGRAM:

Client create new Authentication


a/c min_bal Withdraw Deposit
Checking checking
1: enter the client details

2:a/c creation response

3: check for authentication

4:if authentication

5: transaction made

6: transaction details

7: if not auth person

8: if amount less than min bal

9: check for authentication

10: allow to deposit the amt

11: transaction details

12: if not an authenticatioperson

8
EX.NO. :2

DATE : 19.12.17 STUDENT MARK ANALYSIS

AIM:
To design a student mark analysis using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3:Select the Use case Diagram and Draw it.

Step4:Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6:Generating the coding student mark analysis using Visual Basic.

Step7: Stop the process.

9
CODING:

Option explicit

'##ModelId=5207BD6CE001F

Private name As string

'##ModelId=52EBD6D302FD

Private Rollno As integer

'##ModelId =52EBD6DB02DE

Private mark1 as int

'##ModelId =52EBD6DB2042

Private mark2 As int

'##ModelId =52EBD6DE602D

Private mark3 As int

'##ModelId =52EBD6FB02F

Private average As int

'##ModelId =52EBD6FB033C

Private grade As string

'##ModelId=52EBD78A01777

Public NewProperty As staff_details

'##ModelId=52EBD78A02EE

Public NewProperty2 As extra_curricular_activities

'##ModelId=5307129303FD

Private rno As int

'##ModelId =52EBD6DB02DE

Private mark1 As int

10
'##ModelId =52EBD6DB2042

Private mark2 As int

'##ModelId =52EBD6DE602D

Private mark3 As int

'##ModelId =52EBD6FB02F

Private average As int

'##ModelId=52EBD6E602FD

Public sub total ()

End sub

Option explicit

'##ModelId=52EBD6CE001F

Private name as string

'##ModelId =52EBD6DB02DE

Private mark1 As int

'##ModelId =52EBD6DB2042

Private mark2 As int

'##ModelId =52EBD6DE602D

Private mark3 As int

'##ModelId =52EBD6FB02F

Private average As int

'##ModelId=52EBD6E602FD

Public sub total()

End sub

Option explicit

11
'##ModelId=52EBD6CE001F

Private sports As string

'##ModelId=52EBD6A5015

Private Ncc as string

'##ModelId=52EBD6AC002E

Private Nss as string

'##ModelId=52EBD73F0290

Public NewProperty As Student Information System

'##ModelId=52EBD73B0280

Public sub grade()

End sub

Option explicit

'##ModelId=52EBD6CE001F

Private name As string

'##ModelId=520EBD6D3FD

Private rollno As variant

'##ModelId =52EBD6DB02DE

Private mark1 As int

'##ModelId =52EBD6DB2042

Private mark2 As int

'##ModelId =52EBD6DE602D

Private mark3 As int

'##ModelId =52EBD6FB02F

Private average As int

12
'##ModelId=52EBD6E602FD

Private grade As String

'##ModelId=52EBD6E76707

Public NewProperty As staff_details

'##ModelId=52EBD2E901EE

Public NewProperty2 As Extra_curicular_activities

'##ModelId=52EBD78A02FD

Private rolno As int

'##ModelId =52EBD6DB02DE

Private mark1 As int

'##ModelId =52EBD6DB2042

Private mark2 As int

'##ModelId =52EBD6DE602D

Private mark3 As int

'##ModelId =52EBD6FB02F

Private average As int

'##ModelId=52EBD6E602FD

Public sub total()

End Sub

Option explicit

'##ModelId=52EBD6CE001F

Private name As string

'##ModelId=520EBD6D3FD

Private rollno As variant

13
'##ModelId =52EBD6DB02DE

Private mark1 As int

'##ModelId =52EBD6DB2042

Private mark2 As int

'##ModelId =52EBD6DE602D

Private mark3 As int

'##ModelId =52EBD6FB02F

Private average As int

'##ModelId=52EBD6E602FD

Private grade As String

'##ModelId=52EBD6E76707

Public NewProperty As staff_details

'##ModelId=52EBD2E901EE

Public NewProperty2 As Extra_curicular_activities

'##ModelId=52EBD78A02FD

Private rolno As int

'##ModelId =52EBD6DB02DE

Private mark1 As int

'##ModelId =52EBD6DB2042

Private mark2 As int

'##ModelId =52EBD6DE602D

Private mark3 As int

'##ModelId =52EBD6FB02F

Private average As int

14
'##ModelId=52EBD6E602FD

Public sub total()

End Sub

Option explicit

'##ModelId=52EBD6CE001F

Private sports As string

'##ModelId=52EBD6A5015

Private Ncc as string

'##ModelId=52EBD6AC002E

Private Nss as string

'##ModelId=52EBD73F0290

Public NewProperty As Student Information System

'##ModelId=52EBD73B0280

Public sub grade()

End sub

15
USECASE DIAGRAM:

Add

Staff Find

Modify

Delete

Calculate

Display Marks
Student

16
CLASS DIAGRAM:

17
SEQUENCE DIAGRAM:

STUDENT INFORMATION STAFF MARK


SYSTEM DETAILS DETAILS

1:DISPLAY OPTION

2:LOGIN

3:CHECKING VALID LOGIN

4:VALID USER

5:ENTER ROLL NO

6:ENTER MARK

7:CHECKING MARK

8:CHECKING SUCCESSFULLY

9:AVERAGE CALCULATION

10:TERMINATE

18
COLLABRATION DIAGRAM:

19
EX.NO. :3

DATE : 27.12.17 PLATFORM ASSIGNMENT SYSTEM

AIM:
To design a platform assignment system using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3:Select the Use case Diagram and Draw it.

Step4:Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6:Generating the coding platform assignment system using Visual Basic.

Step7: Stop the process.

20
CODING:
Option explicit

'##ModelId=52F25A110161

Private park_id As integer

'##ModelId=52F26A150203

Private parkarea As string

'##ModelId=52F26A560203

Private update()

End sub

'##ModelId=52F29EB00DA

Private car_id As integer

'##ModelId=52F51FD0179

Private Car_name As string

'##ModelId=52F5ADD0119

Public NewProperty As gate

'##ModelId=52F273C9007D

Public sub cararrives()

'##ModelId=52F2A09007D

Public sub carenters()

End Sub

'##ModelId=52F26C80A100

Private sub car_id As Integer

'##ModelId=52F3FB0DB0148

Private car_name As string

21
'##ModelId=52F26C7F01FA

Private gate_id As integer

'##ModelId=52F26C8B20000

private park_id as integer

'##ModelId=52F40FB1B026B

Private parkarea As String

'##ModelId=52F40B50399

Public Newproperty As parking_spaces

'##ModelId=52F3FB320034B

Public sub granted()

End sub

'##ModelId=52FBF3B2034B

Public sub denied()

End sub

'##ModelId=52F40FB138

Private gate_id As integer

'##ModelId=52F45AF1033C

Public Newproperty As parking_spaces

'##ModelId=52F45B00037A

Public Newproperty2 As parkinglotcontoller

'##ModelId=52F3FB32C01B

Public sub gateopens()

End sub

'##ModelId=52FBF3B2002E

Public sub gatecloses()

End sub

22
USECASE DIAGRAM:

display parking space availability

cardriver
car arriving

display

car leaving

entry access control


building manager system configuration

space availabilty sensor


generate report

update member database

23
CLASS DIAGRAM:

24
SEQUENCE DIAGRAM:

cardriver gate parkinglotcontr parkingspacese


oller nsor

car arrives

check authorization

granted
gate opens

car enters

gate closes

car parks on an available space


update parlking space status

status updated

car arrives
check authorization

denied
error meassage displayed

25
COLLABRATION DIAGRAM:

1: car arrives
5: car enters
10: car arrives
cardriver gate

4: gate opens
6: gate closes
13: error meassage displayed
2: check authorization
11: check authorization
3: granted
7: car parks on an available space
12: denied

8: update parlking space status


parkingspaces parkinglotcont
ensor roller
9: status updated

26
EX.NO. :4

DATE : 06.01.18 RAILWAY RESERVATION SYSTEM

AIM:
To design a railway reservation system using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3: Select the Use case Diagram and Draw it.

Step4: Select the Sequence Diagram and Draw it.

Step5: Select the Collaboration Diagram and Draw it.

Step6:Generating the coding railway reservation system using Visual Basic.

Step7: Stop the process.

27
CODING:

Option explicit

'##ModelId=5309D0F10261

Private name As variant

'##ModelId=5309D0F30213

Private age As variant

'##ModelId=5309D0F035B

Private adress As variant

'##ModelId=5309D28D02FD

Private NewProperty As railway_controller

'##ModelId=5309D0FC030D

Public sub view_train_details()

End sub

'##ModelId=5309D10F01E4

Public sub request_form()

End sub

'##ModelId=5309D1240232

Public sub reserve()

End Sub

'##ModelId=5309D13200FA

Public sub cancel_action()

End sub

'##ModelId=5309D14A0000

public sub credit_card_detail()

28
End sub

Option explicit

'##ModelId=5309D0F10261

Private name As variant

'##ModelId=5309D0F30148

Private age As variant

'##ModelId=5309D0F03CE

Private adress As variant

'##ModelId=5309D2302B5

Private NewProperty As railway_controller

'##ModelId=5309D19300EA

Public sub cancel_ticket()

End sub

'##ModelId=5309D1CE3030D

Public sub reserve_ticket()

End sub

'##ModelId=5309D1CE0251

Public sub update_ticket_details()

End sub

'##ModelId=5309D1DC02DE

Public sub receive_cash()

End sub

29
CLASS DIAGRAM:

passenger
name
age
address railway_controller
name
view_train_details() age
requst_form() adress
submit_form()
reserve() cancel_ticket()
cancel_action() reszerve_ticket()
credit_card_details() update_ticket_details()
receive_cash()

railway_database
train_details
passenger_details
store_details()

30
USE CASE DIAGRAM:

ticket availability railway website

fill form
customer

book ticket
pay free amount

print form cancel ticket

refund money

31
COLLABRATION DIAGRAM:

3: filled form()

4: modify_form()

1: cancellation_form() 6: delete details()


passenger clerk ticket
2: cancel_ticket() 7: add to available()

5: confirms()

8: calculate_fine_and_refund()

32
SEQUENCE DIAGRAM:

passenger railway website clerk ticket


1:cancellation_form()

2:cancel_ticket()

3:field_form()

4:modify_form()

5:confirms()

6:delete_ticket()

7:add to availability
8:calculate_fine availability

33
ACTIVITY DIAGRAM:

34
search train

submit
form

book tickets

fill details

submit details

make
payments

print ticket

35
EX.NO. :5
EXPERT SYSTEM FOR MEDICINE
DATE : 25.01.18
FIELD

AIM:
To design an expert system for MEDICINE FIELD using UML diagram and to generate VB
code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3:Select the Use case Diagram and Draw it.

Step4: Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6: Generating the coding expert system for medicine field using Visual Basic.

Step7: Stop the process.

36
CODING:
Option explicit

'##ModelId=52F16D1B0148

Private name As String

'##ModelId=52F26D1702C4

Private IP_address As Integer

'##ModelId=52F26D5901C5

Private system_no As integer

'##ModelId=52F26D7027D

Public sub identify_diseases()

End sub

'##ModelId=52F12D69007D

Public sub prescribe_medicine()

End sub

Option explicit

'##ModelId=52F12CBF0213

Private name As String

'##ModelId=52F26CC800EA

Private bedno As integer

'##ModelId=52F273C89C

Public NewProperty As system

'##ModelId=52F12D0E009C

Public sub sumptoms()

End Sub 37
USECASE DIAGRAM:

Symptoms

Medicine
Humanbeing

system
Disease

Dsage

Insufficient

CLASS DIAGRAM:

38
SEQUENCE DIAGRAM:

Symptoms Disease Medicine Dosage Insufficient


system : system

1:Give symptoms

2:Known about the disease

3:give medicine

4:Get dosage

5:give Insufficient informamation

39
COLLABRATION DIAGRAM:

Symptom
s
1: 1:Give symptoms

2: 2:Known about the disease

Disease
system : system 5: 5:give Insufficient informamation

4: 4:Get dosage
3: 3:give medicine

Insufficient
Medicine
Dosage

40
EX.NO. :6

DATE : 25.01.18 STOCK MAINTENANCE SYSTEM

AIM:
To design a stock maintenance system using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3: Select the Use case Diagram and Draw it.

Step4:Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6: Generating the coding stock maintenance system using Visual Basic.

Step7: Stop the process.

41
CODING:

Option explicit

'##ModelId=52F26C110177

Private cname As variant

'##ModelId=52F26C1702E4

Private address As variant

'##ModelId=52F26C560222

Private cphone As variant

'##ModelId=52F26C1702EE

Private cmailid As variant

'##ModelId=52F51F880196

Public NewProperty As product

'##ModelId=52F273C303EA

Public NewProperty2 As creditcard

'##ModelId=52F273C312312

Public sub selectingproduct()

End Sub

'##ModelId=52F26C80AA109

Public sub comparingproduct()

End sub

Option explicit

'##ModelId=52F3FB0DB030D

Private pid As variant

'##ModelId=52F26C7F01A5

42
Private pname As variant

'##ModelId=52F26C8B0119

private ptype as variant

'##ModelId=52F40FB1B02BF

Public sub talking()

End sub

'##ModelId=52F40B23003E

Public sub talkingphotos()

End sub

'##ModelId=52F3FB3200357B

Public sub listeningto music()

End sub

'##ModelId=52FBF3B900DA

Public sub webaccess()

End sub

43
USECASE DIAGRAM:

search products

view images and specification


User

seller
select or compare products

edit the selected products

purchased product

CLASS DIAGRAM:

44
SEQUENCE DIAGRAM:

user product seller site payment

enter username and password

login

selling product
product has been enabled

paid through credit card

COLLABRATION DIAGRAM:

5: paid through credit card


payment
user

2: login 3: selling product

1: enter username and password

seller site product

4: product has been enabled

45
EX.NO. :7

DATE : 01.02.18 QUIZZING SYSTEM

AIM:
To design a quizzing system using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3: Select the Use case Diagram and Draw it.

Step4:Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram an Draw it.

Step6:Generating the coding quizzing system using Visual Basic.

Step7: Stop the process.

46
CODING:

Option explicit

'##ModelId=52F26C110222

Private Name As String

'##ModelId=52F26C1702CE

Private id As Integer

'##ModelId=52F51F8801EE

Public NewProperty As scoredb

'##ModelId=52F273C303B9

Public NewProperty2 As quizdb

'##ModelId=52F273C3128

Public sub register()

End Sub

'##ModelId=52F26C801B5

Public sub update()

End sub

'##ModelId=52F26C2C02FD

Public sub verify()

End sub

Option explicit

'##ModelId=52F3FB090387A

Private name As string

'##ModelId=52F26C7F01A5

47
Private id As Integer

'##ModelId=52F26C8B0261

private teamname as String

'##ModelId=52F40FB1B0261

Public NewProperty As Quiz_Master

'##ModelId=52F4088903EA

Public NewProperty2 As scoredb

'##ModelId=52F3FB32007D

Public sub register()

End sub

'##ModelId=52FBF36000F

Public sub register()

End sub

'##ModelId=52F26C9E003E

Public sub answer()

End sub

Option explicit

'##ModelId=52F4056B00CB

Private question As string

'##ModelId=52F4088A00203

Private answer As string

'##ModelId=52F3FB7B032C

Private Sub verify()

End Sub

48
USECASE DIAGRAM:

Registration

Prepare Questions

Participant Quiz master


Participation

Scoring

Report

49
CLASS DIAGRAM:

50
SEQUENCE DIAGRAM:

Questiontopic Report
participant : : Quiz master retrivingquestionsdb
Participant : Participant
getparticipantdetails

givedetails

selecttopic

getquestion

askques tion

awating

answer
analyse answer

generate report
displayresult

51
COLLABORATION DIAGRAM:

6: awating

3: selecttopic

participant : Participant 2: givedetails Questiont


7: answer opic

1: getparticipantdetails
5: askquestion
10: displayresult

9: generate report : Quiz master

4: getquestion
8: analyse answer

Report

retrivingquestionsdb :
Participant

52
EX.NO. :8

DATE : 08.02.18 REMOTE COMPUTER MONITORING


SYSTEM

AIM:
To design a remote computer monitoring system using UML diagram and to generate VB
code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3:Select the Use case Diagram and Draw it.

Step4: Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6: Generating the coding remote computer monitoring system using Visual Basic.

Step7: Stop the process.

53
CODING:

'##ModelId=52F3F5B90271

Private Userid As Variant

'##ModelId=52F3F5C3009C

Private organid As Variant

'##ModelId=52F51F8801EE

Public NewProperty As organization

'##ModelId=52F5F9A005D

Public sub add()

End Sub

'##ModelId=52F3F98F02EE

Public sub view()

End sub

'##ModelId=52F3F99400EA

Public sub update()

End sub

Option explicit

'##ModelId=52F3FB090387A

Private serverid As variant

'##ModelId=52F4054E00CB

Private organid As variant

'##ModelId=52F40FB1B0196

Private userid as variant

'##ModelId=52F40FB1B0196

54
Public NewProperty As Master_users

'##ModelId=52F4088903DB

Public NewProperty2 As organization

'##ModelId=52F3FB32007D

Public sub add()

End sub

'##ModelId=52FBF3602AF

Public sub view()

'##ModelId=52F3FB3803D8

Public sub update()

End sub

Option explicit

'##ModelId=52F4056B00CB

Private notification As Variant

'##ModelId=52F4088A00203

Private userid As variant

'##ModelId=52F4088A038A

Private serverid As Variant

'##ModelId=52FB6E98005D

Public NewProperty As Master_users

'##ModelId=52F4088A006D

Public Sub add()

End Sub

'##ModelId=52F3FB7B032C

Private Sub view()

End Sub

55
USECASE DIAGRAM:

Login

Organization

Uses

Master

Servers

Notification

Logout

56
CLASS DIAGRAM:

57
COLLABRATION DIAGRAM:

3: 4:view update

1: 1:username&pwd

2: 3:setuporganize
Admin : Master login organizati
on

8: 9:setup notification
9: 10:view updaet

6: 7:setupservers
4: 5:setupusers
10: 11:logout Notificatio
5: 6:view update
7: 8:view update n

users
servers

Database

58
User:

1: 1:Username/pwd

login

Employee : Master

3: 3:setupnotification
2: 4: 4:viewupdate
5: 5:logout

notification
Database teams

59
SEQUENCE DIAGRAM:

Admin:

login organization users servers Notification Database


Admin : Master

1:username&pwd

3:setuporganize
4:view update

5:setupusers
6:view update

7:setupservers 8:view update

9:setup notification
10:view updaet

11:logout

60
User:

login notification Database


Employee : Master
teams

1:Username/pwd

3:setupnotification
4:viewupdate

5:logout

61
EX.NO. :9

DATE : 16.02.18 ONLINE TICKET RESERVATION SYSTEM

AIM:
To design an online ticket reservation system using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3:Select the Use case Diagram and Draw it.

Step4: Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6:Generating the coding online ticket reservation system using Visual Basic.

Step7: Stop the process.

62
CODING:

'##ModelId=52F517760109

Private PNRno As Integer

'##ModelId=52F5177E008C

Private pass_id As Integer

'##ModelId=52F5178701B5

Private No_tickets As Integer

'##ModelId=52F5179201E4

Private seat_no As Integer

'##ModelId=52F404EB01E7

Private destination As String

'##ModelId=52F4059A036B

Private bok_date As daet

'##ModelId=52F4058800DA

Private journey_date As Date

'##ModelId=52F4054E000F

Private amount As Double

'##ModelId=52F405530251

Public NewProperty As System

'##ModelId=52F4088903D9

Public NewProperty2 As passenger

'##ModelId=52F4088A001F

Public sub PNR Gen()

End sub

63
option explicit

'##ModelId=52F4055C008C

Private pass_id As Integer

'##ModelId=52F405630280

Private pass_name As String

'##ModelId=52F4056C0290

Private pass_add As Variant

'##ModelId=52F4088A0000

Private pass_tel As Integer

'##ModelId=52F4088A000F

Private pass_birth As Date

'##ModelId=52F4088A0010

Public Sub Mail enquiry()

'##ModelId=52F4088A002E

Public Sub passreg()

End Sub

'##ModelId=52F4088A003E

Private Sub Send passidgen()

End Sub

Option explicit

'##ModelId=52F4088A003F

Public NewProperty As Cancellation

'##ModelId=52F4057C02AF

Public NewProperty2 As Payment

64
'##ModelId=52F405060271

Public Sub login()

End sub

Option explicit

'##ModelId=52F517760109

Private PNRno As Integer

'##ModelId=52F5177E008C

Private pass_id As Integer

'##ModelId=52F5178701B5

Private No_tickets As Integer

'##ModelId=52F5179201E4

Private seat_no As Integer

'##ModelId=52F404EB01E7

Private destination As String

'##ModelId=52F4059A036B

Private book_date As date

'##ModelId=52F4058800DA

Private journey_date As Date

'##ModelId=52F4054E000F

Private amount As Double

'##ModelId=52F405530251

Public NewProperty As System

'##ModelId=52F4088903D9

Public NewProperty2 As passenger

65
'##ModelId=52F4088A001F

Public sub PNR Gen()

End sub

'##ModelId=52F4050F037A

Private sub cancelrecgen()

End sub

'##ModelId=52F40512001F

Private sub paydeduct()

End sub

'##ModelId=52F405150213

Private amount As Integer

'##ModelId=52F40519006D

Private pass_id As integer

'##ModelId=52F4088E008D

Private paymode As String

'##ModelId=52F405210280

Public Sub credit_no As Integer()

'##ModelId=52F405270186

Public Sub pay_date As Date

'##ModelId=52F4088E009C

Public Sub Newproperty As passenger

'##ModelId=52F4088E00AB

Public Sub payreceiptgen()

End Sub

66
USECASE DIAGRAM:

<<uses>>

login validation

check availability

booking pass details


Passenger window

seat selection non window

cheque
payment credit card

payment deduction

cancellation
cancel receipt generated

67
CLASS DIAGRAM:

68
EQUENCE DIAGRAM TO CHECK AVAILABILTY:

system database
: Passenger

enquiry details

get details

return status

availability

69
SEQUENCE DIAGRAM FOR LOGIN:

system database
: Passenger

login details

username and password

retrieve member details

provide access

70
SEQUENCE DIAGRAM FOR RESERVATION:

system database
: Passenger

new user request

registered form

submit registration form

verify registration details

successful update

successful registration

71
SEQUENCE DIAGRAM FOR PASSENGER REGISTRATION:

system database
: Passenger

new user request

registration form

submit registration form

verify registration details

successful updates

successful registration

72
SEQUENCE DIAGRAM FOR CANCELLATION:

system database payment


: Passenger

PNR no
retrieve details

return details

reservation details
request for cancellation

release tickets

payment deduction

update successful

cancellation receipt generated

cancellation receipt provided

73
COLLABORATION DIAGRAM TO CHECK AVAILABILTY:

1: enquiry details

system

4: availability
: Passenger

3: return status

2: get details

database

COLLABRATION DIAGRAM FOR LOGIN:

1: login details
system

4: provide access
: Passenger

3: retrieve member details 2: username and password

database

74
COLLABRATION DIAGRAM FOR RESERVATION:

1: new user request


3: submit registration form

system
: Passenger 2: registered form
6: successful registration

5: successful update

4: verify registration details

database

COLLABRATION DIAGRAM FOR CANCELLATION:

1: new user request


3: submit registration form

system

: Passenger 2: registration form


6: successful registration

5: successful updates

4: verify registration details

database

75
COLLABRATION DIAGRAM FOR PASSENGER REGISTRATION:

1: PNR no
5: request for cancellation
system

4: reservation details
: Passenger 10: cancellation receipt provided

3: return details
8: update successful 9: cancellation receipt generated
11:
2: retrieve details
7: payment deduction
6: release tickets

database

payment

76
EX.NO. :10

DATE : 03.03.18 E-MAIL CLIENT SERVER SYSTEM

AIM:
To design an E-mail client system using UML diagram and to generate VB code.

ALGORITHM:

Step1: Start the process.

Step2:Open Rational Rose Select Class Diagram and Draw it.

Step3:Select the Use case Diagram and Draw it.

Step4: Select the Sequence Diagram and Draw it.

Step5:Select the Collaboration Diagram and Draw it.

Step6:Generating the coding E-mail client system using Visual Basic.

Step7: Stop the process.

77
CODING:

Option Explicit

'##ModelId=52F404CF0242

Private Password As Variant

'##ModelId=52F404D40177

Private Username As Variant

'##ModelId=52F404DD0109

Public Sub mail_security()

End Sub

'##ModelId=52F404E40167

Public Sub check_db()

End Sub

'##ModelId=52F404EB01D4

Public Sub inter_mail_comm()

End Sub

Option Explicit

'##ModelId=52F4059A036B

Implements Send_Receive

'##ModelId=52F4058800DA

Implements Mail_system

'##ModelId=52F4054E000F

Private folder_name As Variant

'##ModelId=52F405530251

Private keyword As Variant

78
'##ModelId=52F4088903D9

Private mMail_systemObject As New Mail_system

'##ModelId=52F4088A001F

Private mSend_ReceiveObject As New Send_Receive

'##ModelId=52F4055C008C

Public Sub create_folder()

End Sub

'##ModelId=52F405630280

Public Sub spam_filter()

End Sub

'##ModelId=52F4056C0290

Public Sub search()

End Sub

'##ModelId=52F4088A0000

Private Sub Mail_system_mail_security()

End Sub

'##ModelId=52F4088A000F

Private Sub Mail_system_check_db()

End Sub

'##ModelId=52F4088A0010

Private Sub Mail_system_inter_mail_comm()

End Sub

'##ModelId=52F4088A002E

Private Sub Send_Receive_send_mail()

79
End Sub

'##ModelId=52F4088A003E

Private Sub Send_Receive_receive_mail()

End Sub

'##ModelId=52F4088A003F

Private Sub Send_Receive_compose_mail()

End Sub

Option Explicit

'##ModelId=52F4057C02AF

Implements Mail_system

'##ModelId=52F405060271

Private to As Variant

'##ModelId=52F4050F037A

Private cc As Variant

'##ModelId=52F40512001F

Private sub As Variant

'##ModelId=52F405150213

Private msg As Variant

'##ModelId=52F40519006D

Private attachment As Variant

'##ModelId=52F4088E008D

Private mMail_systemObject As New Mail_system

'##ModelId=52F405210280

Public Sub send_mail()

80
'##ModelId=52F405270186

Public Sub receive_mail()

End Sub

'##ModelId=52F4052F000F

Public Sub compose_mail()

End Sub

'##ModelId=52F4088E009C

Private Sub Mail_system_mail_security()

End Sub

'##ModelId=52F4088E00AB

Private Sub Mail_system_check_db()

End Sub

'##ModelId=52F4088E00BB

Private Sub Mail_system_inter_mail_comm()

End Sub

81
USECASE DIAGRAM:

create message

user

SMPT server
send mesage

downloadmessages
POP Server

82
CLASS DIAGRAM:

83
SEQUENCE DIAGRAM:

: user recipeframeshowmessagedial optionpane desktop email


showinputdialog client
ogWARNING_MESSAGE]

recipemanager [open program]

emailbottonperformed(no recipe selected)

emailbottonactionperformed(recipe selected)

enter valid email address

not valid email address


URI create(message) [valid email address]

84
COLLABORATION DIAGRAM:

recipef
2: emailbottonperformed(no recipe selected)
rame [open program]
1: recipemanager
5: not valid showmessagedialog[W
email address
ARNING_MESSAGE]

: user 3: emailbottonactionperformed(recipe
selected)
4: enter valid email address
6: URI create(message) [valid email address]
optionpane
showinputdialog
client

desktop email

85

You might also like